public final class Validated
extends java.lang.Object
implements java.lang.CharSequence
CharSequence that comes with a guarantee about the characters it contains.
The characters are validated lazily on the first access to any of the methods, not up-front.
| Constructor and Description |
|---|
Validated(java.lang.CharSequence delegate,
CharSet charSet) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int i) |
int |
length() |
java.lang.CharSequence |
subSequence(int i,
int i1) |
java.lang.String |
toString() |
public Validated(java.lang.CharSequence delegate,
CharSet charSet)
public int length()
length in interface java.lang.CharSequencepublic char charAt(int i)
charAt in interface java.lang.CharSequencepublic java.lang.CharSequence subSequence(int i,
int i1)
subSequence in interface java.lang.CharSequencepublic java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.Object