|
org.netbeans.modules.editor.util/1 1.17 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.netbeans.lib.editor.util.AbstractCharSequence
public abstract class AbstractCharSequence
Abstract implementation of character sequence
with String-like implementation
of hashCode() and equals().
| Nested Class Summary | |
|---|---|
static class |
AbstractCharSequence.StringLike
Subclass providing string-like implementation of hashCode() and equals()
method accepting strings with the same content
like charsequence has. |
| Constructor Summary | |
|---|---|
AbstractCharSequence()
|
|
| Method Summary | |
|---|---|
abstract char |
charAt(int index)
Returns the character at the specified index. |
abstract int |
length()
Returns the length of this character sequence. |
CharSequence |
subSequence(int start,
int end)
Return subsequence of this character sequence. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCharSequence()
| Method Detail |
|---|
public abstract int length()
length in interface CharSequencepublic abstract char charAt(int index)
charAt in interface CharSequenceindex - the index of the character to be returned
IndexOutOfBoundsException - if the index argument is negative or not less than
length()public CharSequence subSequence(int start, int end)
subSequence in interface CharSequencestart - >=0 starting index of the subsequence within this
character sequence.end - >=0 ending index of the subsequence within this
character sequence.public String toString()
toString in interface CharSequencetoString in class Object
|
org.netbeans.modules.editor.util/1 1.17 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||