Package org.apache.commons.lang
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
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.commons.lang.Entities.PrimitiveEntityMap
add, value
-
Field Details
-
lookupTable
-
LOOKUP_TABLE_SIZE
private static final int LOOKUP_TABLE_SIZE- See Also:
-
-
Constructor Details
-
LookupEntityMap
LookupEntityMap()
-
-
Method Details
-
name
Returns the name of the entity identified by the specified value.
- Specified by:
namein interfaceEntities.EntityMap- Overrides:
namein classEntities.PrimitiveEntityMap- Parameters:
value- the value to locate- Returns:
- entity name associated with the specified value
-
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.
-