/** * Allows joining additional components to this builder using the given * {@link Joiner}. * * Simply executes the provided joiner on this instance to facilitate a * chain pattern. * * @param joiner joiner used for operation * @param retention the formatting to retain * @return this ComponentBuilder for chaining */ public ComponentBuilder append(Joiner joiner, FormatRetention retention) { return joiner.join( this, retention ); }
/** * Allows joining additional components to this builder using the given * {@link Joiner} and {@link FormatRetention#ALL}. * * Simply executes the provided joiner on this instance to facilitate a * chain pattern. * * @param joiner joiner used for operation * @return this ComponentBuilder for chaining */ public ComponentBuilder append(Joiner joiner) { return joiner.join( this, FormatRetention.ALL ); }