org.carrot2.text.suffixtree
Interface ISequence

All Known Implementing Classes:
CharacterSequence, IntegerSequence

public interface ISequence

A sequence of elements from which a SuffixTree 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
 int objectAt(int i)
          Returns a unique integer code for object at index i (the first element has 0 index).
 int size()
          Returns the number of elements in the sequence.
 

Method Detail

size

int size()
Returns the number of elements in the sequence.


objectAt

int objectAt(int i)
Returns a unique integer code for object at index i (the first element has 0 index).



Copyright (c) Dawid Weiss, Stanislaw Osinski