static class Entities.PrimitiveEntityMap extends java.lang.Object implements Entities.EntityMap
| Modifier and Type | Field and Description |
|---|---|
private java.util.Map |
mapNameToValue |
private IntHashMap |
mapValueToName |
| Constructor and Description |
|---|
PrimitiveEntityMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(java.lang.String name,
int value)
Add an entry to this entity map.
|
java.lang.String |
name(int value)
Returns the name of the entity identified by the specified value.
|
int |
value(java.lang.String name)
Returns the value of the entity identified by the specified name.
|
private final java.util.Map mapNameToValue
private final IntHashMap mapValueToName
public void add(java.lang.String name,
int value)
Add an entry to this entity map.
add in interface Entities.EntityMapname - the entity namevalue - the entity valuepublic java.lang.String name(int value)
Returns the name of the entity identified by the specified value.
name in interface Entities.EntityMapvalue - the value to locatepublic int value(java.lang.String name)
Returns the value of the entity identified by the specified name.
value in interface Entities.EntityMapname - the name to locate