Class StringEntry


  • public final class StringEntry
    extends java.lang.Object
    A StringEntry represents a value found by the tokenizer. The index is where this StringEntry was found in the source string.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int index  
      private java.lang.String value  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringEntry​(java.lang.String value, int index)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getIndex()
      Gets the index attribute of the StringEntry object.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • value

        private final java.lang.String value
      • index

        private final int index
    • Constructor Detail

      • StringEntry

        public StringEntry​(java.lang.String value,
                           int index)
        Constructor.
        Parameters:
        value - value
        index - index
    • Method Detail

      • getIndex

        public int getIndex()
        Gets the index attribute of the StringEntry object.
        Returns:
        index
      • toString

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