Package org.jivesoftware.smack.util
Class LazyStringBuilder
- java.lang.Object
-
- org.jivesoftware.smack.util.LazyStringBuilder
-
- All Implemented Interfaces:
java.lang.Appendable
,java.lang.CharSequence
public class LazyStringBuilder extends java.lang.Object implements java.lang.Appendable, java.lang.CharSequence
-
-
Constructor Summary
Constructors Constructor Description LazyStringBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LazyStringBuilder
append(char c)
LazyStringBuilder
append(java.lang.CharSequence csq)
LazyStringBuilder
append(java.lang.CharSequence csq, int start, int end)
LazyStringBuilder
append(LazyStringBuilder lsb)
char
charAt(int index)
java.util.List<java.lang.CharSequence>
getAsList()
Get the List of CharSequences representation of this instance.int
length()
java.lang.StringBuilder
safeToStringBuilder()
java.lang.CharSequence
subSequence(int start, int end)
java.lang.String
toString()
-
-
-
Constructor Detail
-
LazyStringBuilder
public LazyStringBuilder()
-
-
Method Detail
-
append
public LazyStringBuilder append(LazyStringBuilder lsb)
-
append
public LazyStringBuilder append(java.lang.CharSequence csq)
- Specified by:
append
in interfacejava.lang.Appendable
-
append
public LazyStringBuilder append(java.lang.CharSequence csq, int start, int end)
- Specified by:
append
in interfacejava.lang.Appendable
-
append
public LazyStringBuilder append(char c)
- Specified by:
append
in interfacejava.lang.Appendable
-
length
public int length()
- Specified by:
length
in interfacejava.lang.CharSequence
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfacejava.lang.CharSequence
-
subSequence
public java.lang.CharSequence subSequence(int start, int end)
- Specified by:
subSequence
in interfacejava.lang.CharSequence
-
toString
public java.lang.String toString()
- Specified by:
toString
in interfacejava.lang.CharSequence
- Overrides:
toString
in classjava.lang.Object
-
safeToStringBuilder
public java.lang.StringBuilder safeToStringBuilder()
-
getAsList
public java.util.List<java.lang.CharSequence> 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.
-
-