/** * Appends the given char. * If this instance is currently uninitialized the given char is used for initialization. * * @param c the char to append * @return true */ public boolean append(char c) { if (get() == null) return set(new StringBuilder().append(c)); get().append(c); return true; }
/** * Appends the given string. * If this instance is currently uninitialized the given string is used for initialization. * * @param text the text to append * @return true */ public boolean append(String text) { if (get() == null) return set(new StringBuilder(text)); get().append(text); return true; }