org.carrot2.text.suffixtree
Class CharacterSequence

java.lang.Object
  extended by org.carrot2.text.suffixtree.CharacterSequence
All Implemented Interfaces:
ISequence

public final class CharacterSequence
extends Object
implements ISequence

A ISequence wrapper for any CharSequence.


Field Summary
 CharSequence value
           
 
Constructor Summary
CharacterSequence(CharSequence chs)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

public final CharSequence value
Constructor Detail

CharacterSequence

public CharacterSequence(CharSequence chs)
Method Detail

size

public int size()
Description copied from interface: ISequence
Returns the number of elements in the sequence.

Specified by:
size in interface ISequence

objectAt

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

Specified by:
objectAt in interface ISequence


Copyright (c) Dawid Weiss, Stanislaw Osinski