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, waitchars, codePointspublic LazyName()
public int length()
length in interface CharSequencepublic char charAt(int index)
charAt in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic final String toString()
toString in interface CharSequencetoString in class Objectprotected abstract String createString()
String value of this name.