Package org.carrot2.text.suffixtree
Interface Sequence
-
- All Known Implementing Classes:
CharacterSequence,IntegerSequence
public interface SequenceA sequence of elements from which aSuffixTreecan be built. Elements are indexed with integers starting at position 0. Elements themselves must be represented as integers, where equal values at different indices indicate equal objects, whatever the underlying objects might be.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intobjectAt(int i)Returns a unique integer code for object at indexi(the first element has 0 index).intsize()Returns the number of elements in the sequence.
-