abstract static class Entities.MapIntMap extends java.lang.Object implements Entities.EntityMap
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Integer> |
mapNameToValue |
protected java.util.Map<java.lang.Integer,java.lang.String> |
mapValueToName |
Constructor and Description |
---|
MapIntMap() |
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.
|
protected java.util.Map<java.lang.String,java.lang.Integer> mapNameToValue
protected java.util.Map<java.lang.Integer,java.lang.String> mapValueToName
public void add(java.lang.String name, int value)
Add an entry to this entity map.
add
in interface Entities.EntityMap
name
- 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.EntityMap
value
- 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.EntityMap
name
- the name to locate
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.