/** * Returns string contains given components as plain text. (without style) * * @param components components to convert to plain text. * @return string contains given components as plain text. (without style) */ public static String toPlainText(final BaseComponent... components) { final StringBuilder builder = new StringBuilder(); for (final BaseComponent msg : components) { builder.append(msg.toPlainText()); } return builder.toString(); }
void toPlainText(final StringBuilder builder) { if (this.extra != null) { for (final BaseComponent e : this.extra) { e.toPlainText(builder); } } }