static class Entities.LookupEntityMap extends Entities.PrimitiveEntityMap
Modifier and Type | Field and Description |
---|---|
private static int |
LOOKUP_TABLE_SIZE |
private java.lang.String[] |
lookupTable |
Constructor and Description |
---|
LookupEntityMap() |
Modifier and Type | Method and 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.
|
add, value
private java.lang.String[] lookupTable
private static final int LOOKUP_TABLE_SIZE
public java.lang.String name(int value)
Returns the name of the entity identified by the specified value.
name
in interface Entities.EntityMap
name
in class Entities.PrimitiveEntityMap
value
- the value to locateprivate java.lang.String[] lookupTable()
Returns the lookup table for this entity map. The lookup table is created if it has not been previously.
private void createLookupTable()
Creates an entity lookup table of LOOKUP_TABLE_SIZE elements, initialized with entity names.