|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nu.staldal.xodus.CharSequenceWrapper
public class CharSequenceWrapper
Wrap char[] as a CharSequence without copying.
Method Summary | |
---|---|
char |
charAt(int index)
|
int |
length()
|
java.lang.CharSequence |
subSequence(int start,
int end)
|
java.lang.String |
toString()
|
static java.lang.CharSequence |
valueOf(char[] charArray)
Create a CharSequenceWrapper using a whole char[]. |
static java.lang.CharSequence |
valueOf(char[] charArray,
int start,
int end)
Create a CharSequenceWrapper using part of a char[]. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public char charAt(int index)
charAt
in interface java.lang.CharSequence
public int length()
length
in interface java.lang.CharSequence
public java.lang.CharSequence subSequence(int start, int end)
subSequence
in interface java.lang.CharSequence
public java.lang.String toString()
toString
in interface java.lang.CharSequence
toString
in class java.lang.Object
public static java.lang.CharSequence valueOf(char[] charArray)
charArray
- the char[]
java.lang.NullPointerException
- if charArray is null
public static java.lang.CharSequence valueOf(char[] charArray, int start, int end)
charArray
- the char[]start
- the start index, inclusiveend
- the end index, exclusive
java.lang.NullPointerException
- if charArray is null
java.lang.StringIndexOutOfBoundsException
- if start or end is invalid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |