Class CharacterSequence

java.lang.Object
org.carrot2.text.suffixtree.CharacterSequence
All Implemented Interfaces:
Sequence

public final class CharacterSequence
extends Object
implements Sequence
A Sequence wrapper for any CharSequence.
  • Field Details

  • Constructor Details

  • Method Details

    • size

      public int size()
      Description copied from interface: Sequence
      Returns the number of elements in the sequence.
      Specified by:
      size in interface Sequence
    • objectAt

      public int objectAt​(int i)
      Description copied from interface: Sequence
      Returns a unique integer code for object at index i (the first element has 0 index).
      Specified by:
      objectAt in interface Sequence