Package org.jivesoftware.smack.util
Class LazyStringBuilder
java.lang.Object
org.jivesoftware.smack.util.LazyStringBuilder
- All Implemented Interfaces:
Appendable
,CharSequence
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionappend
(char c) append
(CharSequence csq) append
(CharSequence csq, int start, int end) append
(LazyStringBuilder lsb) char
charAt
(int index) Get the List of CharSequences representation of this instance.int
length()
subSequence
(int start, int end) toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
Constructor Details
-
LazyStringBuilder
public LazyStringBuilder()
-
-
Method Details
-
append
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
append
- Specified by:
append
in interfaceAppendable
-
length
- Specified by:
length
in interfaceCharSequence
-
charAt
- Specified by:
charAt
in interfaceCharSequence
-
subSequence
- Specified by:
subSequence
in interfaceCharSequence
-
toString
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in 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.
-