Package org.carrot2.text.suffixtree
Interface Sequence
-
- All Known Implementing Classes:
CharacterSequence
,IntegerSequence
public interface Sequence
A sequence of elements from which aSuffixTree
can 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 int
objectAt(int i)
Returns a unique integer code for object at indexi
(the first element has 0 index).int
size()
Returns the number of elements in the sequence.
-