net.java.sip.communicator.util
Class Entities.MapIntMap
java.lang.Object
net.java.sip.communicator.util.Entities.MapIntMap
- All Implemented Interfaces:
- Entities.EntityMap
- Direct Known Subclasses:
- Entities.HashEntityMap, Entities.TreeEntityMap
- Enclosing class:
- Entities
abstract static class Entities.MapIntMap
- extends Object
- implements Entities.EntityMap
|
Method Summary |
void |
add(String name,
int value)
Add an entry to this entity map. |
String |
name(int value)
Returns the name of the entity identified by the specified value. |
int |
value(String name)
Returns the value of the entity identified by the specified name. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
mapNameToValue
protected Map<String,Integer> mapNameToValue
mapValueToName
protected Map<Integer,String> mapValueToName
Entities.MapIntMap
Entities.MapIntMap()
add
public void add(String name,
int value)
Add an entry to this entity map.
- Specified by:
add in interface Entities.EntityMap
- Parameters:
name - the entity namevalue - the entity value
name
public String name(int value)
Returns the name of the entity identified by the specified value.
- Specified by:
name in interface Entities.EntityMap
- Parameters:
value - the value to locate
- Returns:
- entity name associated with the specified value
value
public int value(String name)
Returns the value of the entity identified by the specified name.
- Specified by:
value in interface Entities.EntityMap
- Parameters:
name - the name to locate
- Returns:
- entity value associated with the specified name
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.