|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectxv.text.CharSequenceSubSequence
public class CharSequenceSubSequence
Utility class for creating subsequences of CharSequence
objects,
mainly intended for implementing CharSequence.subSequence(int, int)
and something that I think Sun should include on their own, but that's
beside the point.
Constructor Summary | |
---|---|
CharSequenceSubSequence(CharSequence base,
int start,
int end)
|
Method Summary | |
---|---|
char |
charAt(int index)
Gets the character at the given index. |
boolean |
equals(Object obj)
Checks if this CharSequenceSubSequence is equal to another |
int |
hashCode()
Generates a hashcode. |
int |
length()
The length of the character sequence. |
CharSequence |
subSequence(int start,
int end)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CharSequenceSubSequence(CharSequence base, int start, int end)
Method Detail |
---|
public char charAt(int index)
charAt
in interface CharSequence
public int length()
length
in interface CharSequence
public CharSequence subSequence(int start, int end)
subSequence
in interface CharSequence
public int hashCode()
CharSequence
does
not define the meaning of the hashcode, and the return value is entirely
dependent on the original CharSequence
given.
hashCode
in class Object
public boolean equals(Object obj)
CharSequenceSubSequence
is equal to another
equals
in class Object
public String toString()
toString
in interface CharSequence
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |