Package autocomplete.dna
Class SuffixCollection.Suffix
- java.lang.Object
-
- autocomplete.dna.SuffixCollection.Suffix
-
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
SuffixCollection.SubSequence
- Enclosing class:
- SuffixCollection
private class SuffixCollection.Suffix extends Object implements CharSequence
A suffix of the data starting from the given begin index.
-
-
Field Summary
Fields Modifier and Type Field Description private int
offset
-
Constructor Summary
Constructors Constructor Description Suffix(int begin)
Constructs a new suffix of the data from the given offset.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description char
charAt(int index)
int
length()
CharSequence
subSequence(int begin, int end)
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.CharSequence
chars, codePoints
-
-
-
-
Method Detail
-
charAt
public char charAt(int index)
- Specified by:
charAt
in interfaceCharSequence
-
length
public int length()
- Specified by:
length
in interfaceCharSequence
-
subSequence
public CharSequence subSequence(int begin, int end)
- Specified by:
subSequence
in interfaceCharSequence
-
toString
public String toString()
- Specified by:
toString
in interfaceCharSequence
- Overrides:
toString
in classObject
-
-