public abstract class LazyName extends Object implements CharSequence
String
value is computed only when it is needed. This is useful in
combination with debugging facilities such as Debug.scope(Object)
where the
String
value of a name is only needed if debugging is enabled.Constructor and Description |
---|
LazyName() |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int index) |
protected abstract String |
createString()
Creates the
String value of this name. |
int |
length() |
CharSequence |
subSequence(int start,
int end) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
chars, codePoints
public LazyName()
public int length()
length
in interface CharSequence
public char charAt(int index)
charAt
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public final String toString()
toString
in interface CharSequence
toString
in class Object
protected abstract String createString()
String
value of this name.