Class TranslationTable<X>


  • public class TranslationTable<X>
    extends java.lang.Object
    Maps string to string for use with convenience names.
    • Constructor Summary

      Constructors 
      Constructor Description
      TranslationTable()
      Create a translation table which respects case
      TranslationTable​(boolean ignoreCase)
      Create a translation table - say whether to ignore case or not
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<java.lang.String> keys()  
      X lookup​(java.lang.String name)  
      void put​(java.lang.String k, X v)  
      java.util.Iterator<X> values()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TranslationTable

        public TranslationTable()
        Create a translation table which respects case
      • TranslationTable

        public TranslationTable​(boolean ignoreCase)
        Create a translation table - say whether to ignore case or not
    • Method Detail

      • lookup

        public X lookup​(java.lang.String name)
      • put

        public void put​(java.lang.String k,
                        X v)
      • keys

        public java.util.Iterator<java.lang.String> keys()
      • values

        public java.util.Iterator<X> values()