Class Entities.LookupEntityMap

    • Constructor Summary

      Constructors 
      Constructor Description
      LookupEntityMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private void createLookupTable()
      Creates an entity lookup table of LOOKUP_TABLE_SIZE elements, initialized with entity names.
      private java.lang.String[] lookupTable()
      Returns the lookup table for this entity map.
      java.lang.String name​(int value)
      Returns the name of the entity identified by the specified value.
      • Methods inherited from class java.lang.Object

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

      • lookupTable

        private java.lang.String[] lookupTable
    • Constructor Detail

      • LookupEntityMap

        LookupEntityMap()
    • Method Detail

      • name

        public java.lang.String name​(int value)

        Returns the name of the entity identified by the specified value.

        Specified by:
        name in interface Entities.EntityMap
        Overrides:
        name in class Entities.PrimitiveEntityMap
        Parameters:
        value - the value to locate
        Returns:
        entity name associated with the specified value
      • lookupTable

        private java.lang.String[] lookupTable()

        Returns the lookup table for this entity map. The lookup table is created if it has not been previously.

        Returns:
        the lookup table
      • createLookupTable

        private void createLookupTable()

        Creates an entity lookup table of LOOKUP_TABLE_SIZE elements, initialized with entity names.