Interface Sequence

All Known Implementing Classes:
CharacterSequence, IntegerSequence

public interface Sequence
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

    Modifier and Type Method Description
    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 Details

    • 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).