Package monq.jfa
Class EmptyCharTrans<T>
java.lang.Object
monq.jfa.EmptyCharTrans<T>
- All Implemented Interfaces:
Iterable<RangeEntry<T>>,CharTrans<T>
-
Method Summary
Modifier and TypeMethodDescriptionget(char ch) returns the object stored in the transition table map for characterchornullifchis not mapped.getAt(int pos) returns the object stored at index positionpos.chargetFirstAt(int pos) returns the left boundary of the range stored at indexposchargetLastAt(int pos) returns the right boundary of the range stored at indexposstatic <T> EmptyCharTrans<T> instance()intsize()returns the number of character ranges (and objects) stored.toString()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
instance
-
get
Description copied from interface:CharTransreturns the object stored in the transition table map for character
chornullifchis not mapped. -
size
public int size()Description copied from interface:CharTransreturns the number of character ranges (and objects) stored. -
getAt
Description copied from interface:CharTransreturns the object stored at index positionpos. -
getFirstAt
public char getFirstAt(int pos) Description copied from interface:CharTransreturns the left boundary of the range stored at indexpos- Specified by:
getFirstAtin interfaceCharTrans<T>
-
getLastAt
public char getLastAt(int pos) Description copied from interface:CharTransreturns the right boundary of the range stored at indexpos -
toString
-