Package org.apache.commons.lang
Class Entities.MapIntMap
java.lang.Object
org.apache.commons.lang.Entities.MapIntMap
- All Implemented Interfaces:
Entities.EntityMap
- Direct Known Subclasses:
Entities.HashEntityMap,Entities.TreeEntityMap
- Enclosing class:
- Entities
-
Field Details
-
mapNameToValue
-
mapValueToName
-
-
Constructor Details
-
MapIntMap
Construct a new instance with specified maps.- Parameters:
nameToValue- name to value mapvalueToName- value to namee map
-
-
Method Details
-
add
Add an entry to this entity map.
- Specified by:
addin interfaceEntities.EntityMap- Parameters:
name- the entity namevalue- the entity value
-
name
Returns the name of the entity identified by the specified value.
- Specified by:
namein interfaceEntities.EntityMap- Parameters:
value- the value to locate- Returns:
- entity name associated with the specified value
-
value
Returns the value of the entity identified by the specified name.
- Specified by:
valuein interfaceEntities.EntityMap- Parameters:
name- the name to locate- Returns:
- entity value associated with the specified name
-