Package org.jivesoftware.smack.util
Class LazyStringBuilder
java.lang.Object
org.jivesoftware.smack.util.LazyStringBuilder
- All Implemented Interfaces:
Appendable,CharSequence
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence csq) append(CharSequence csq, int start, int end) append(LazyStringBuilder lsb) charcharAt(int index) Get the List of CharSequences representation of this instance.intlength()subSequence(int start, int end) toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.CharSequence
chars, codePoints
-
Constructor Details
-
LazyStringBuilder
public LazyStringBuilder()
-
-
Method Details
-
append
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
length
public int length()- Specified by:
lengthin interfaceCharSequence
-
charAt
public char charAt(int index) - Specified by:
charAtin interfaceCharSequence
-
subSequence
- Specified by:
subSequencein interfaceCharSequence
-
toString
- Specified by:
toStringin interfaceCharSequence- Overrides:
toStringin classObject
-
safeToStringBuilder
-
getAsList
Get the List of CharSequences representation of this instance. The list is unmodifiable. If the resulting String was already cached, a list with a single String entry will be returned.- Returns:
- a List of CharSequences representing this instance.
-