Class Entities.LookupEntityMap

java.lang.Object
org.apache.commons.lang.Entities.PrimitiveEntityMap
org.apache.commons.lang.Entities.LookupEntityMap
All Implemented Interfaces:
Entities.EntityMap
Enclosing class:
Entities

static class Entities.LookupEntityMap extends Entities.PrimitiveEntityMap
  • Field Details

    • lookupTable

      private String[] lookupTable
    • LOOKUP_TABLE_SIZE

      private static final int LOOKUP_TABLE_SIZE
      See Also:
  • Constructor Details

    • LookupEntityMap

      LookupEntityMap()
  • Method Details

    • name

      public 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 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.