Class StringTable


  • public class StringTable
    extends java.lang.Object
    A unique set of strings where we can get a string's index. We can also get them back out in original order.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int i  
      protected java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> table  
    • Constructor Summary

      Constructors 
      Constructor Description
      StringTable()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int add​(java.lang.String s)  
      java.lang.String[] toArray()  
      • Methods inherited from class java.lang.Object

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

      • table

        protected java.util.LinkedHashMap<java.lang.String,​java.lang.Integer> table
      • i

        protected int i
    • Constructor Detail

      • StringTable

        public StringTable()
    • Method Detail

      • add

        public int add​(java.lang.String s)
      • toArray

        public java.lang.String[] toArray()