Package net.pwall.text
Class TextMatcher.CharSeq
- java.lang.Object
-
- net.pwall.text.TextMatcher.CharSeq
-
- All Implemented Interfaces:
CharSequence
- Enclosing class:
- TextMatcher
public static class TextMatcher.CharSeq extends Object implements CharSequence
An implementation ofCharSequenceto return data fromTextMatcher.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description charcharAt(int index)Get the character at the given offset.intlength()Get the length of theCharSeq.CharSequencesubSequence(int start, int end)Get a sub-sequence of thisCharSeq.StringtoString()Get theStringrepresentation of thisCharSeq.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
length
public int length()
Get the length of theCharSeq.- Specified by:
lengthin interfaceCharSequence- Returns:
- the length
-
charAt
public char charAt(int index)
Get the character at the given offset.- Specified by:
charAtin interfaceCharSequence- Parameters:
index- the offset- Returns:
- the character
-
subSequence
public CharSequence subSequence(int start, int end)
Get a sub-sequence of thisCharSeq.- Specified by:
subSequencein interfaceCharSequence- Parameters:
start- the start offsetend- the end offset- Returns:
- the sub-sequence
-
-