Package com.yahoo.fsa

Class FSA.Iterator.Item

  • Enclosing class:
    FSA.Iterator

    public static class FSA.Iterator.Item
    extends java.lang.Object
    Internally, this class stores the state information for the iterator. Externally, it is used for accessing the data associated with the iterator position.
    • Constructor Summary

      Constructors 
      Constructor Description
      Item​(FSA.Iterator.Item item)
      Copy constructor.
      Item​(FSA fsa, int state)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer getData()  
      java.lang.String getDataString()  
      java.lang.String getString()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Item

        public Item​(FSA fsa,
                    int state)
        Constructor
        Parameters:
        fsa - the FSA object the iterator is associated with.
        state - the state used as start state.
      • Item

        public Item​(FSA.Iterator.Item item)
        Copy constructor. (Does not copy the state stack)
    • Method Detail

      • getString

        public java.lang.String getString()
      • getData

        public java.nio.ByteBuffer getData()
      • getDataString

        public java.lang.String getDataString()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object