org.carrot2.text.suffixtree
Class IntegerSequence

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

public final class IntegerSequence
extends Object
implements ISequence

An ISequence wrapper for an array of integers.


Constructor Summary
IntegerSequence(int[] seq)
           
IntegerSequence(int[] seq, int start, int length)
           
 
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
 

Constructor Detail

IntegerSequence

public IntegerSequence(int[] seq)

IntegerSequence

public IntegerSequence(int[] seq,
                       int start,
                       int length)
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