Package monq.jfa

Class EmptyCharTrans<T>

java.lang.Object
monq.jfa.EmptyCharTrans<T>
All Implemented Interfaces:
Iterable<RangeEntry<T>>, CharTrans<T>

public class EmptyCharTrans<T> extends Object implements CharTrans<T>
  • Method Details

    • instance

      public static <T> EmptyCharTrans<T> instance()
    • get

      public T get(char ch)
      Description copied from interface: CharTrans

      returns the object stored in the transition table map for character ch or null if ch is not mapped.

      Specified by:
      get in interface CharTrans<T>
    • size

      public int size()
      Description copied from interface: CharTrans
      returns the number of character ranges (and objects) stored.
      Specified by:
      size in interface CharTrans<T>
    • getAt

      public T getAt(int pos)
      Description copied from interface: CharTrans
      returns the object stored at index position pos.
      Specified by:
      getAt in interface CharTrans<T>
    • getFirstAt

      public char getFirstAt(int pos)
      Description copied from interface: CharTrans
      returns the left boundary of the range stored at index pos
      Specified by:
      getFirstAt in interface CharTrans<T>
    • getLastAt

      public char getLastAt(int pos)
      Description copied from interface: CharTrans
      returns the right boundary of the range stored at index pos
      Specified by:
      getLastAt in interface CharTrans<T>
    • toString

      public String toString()
      Overrides:
      toString in class Object