treebolic.provider.xml.fast
Class Entities.MapIntMap

java.lang.Object
  extended by treebolic.provider.xml.fast.Entities.MapIntMap
All Implemented Interfaces:
Entities.EntityMap
Direct Known Subclasses:
Entities.HashEntityMap
Enclosing class:
Entities

abstract static class Entities.MapIntMap
extends java.lang.Object
implements Entities.EntityMap


Field Summary
protected  java.util.Map<java.lang.String,java.lang.Integer> mapNameToValue
           
 
Constructor Summary
Entities.MapIntMap()
           
 
Method Summary
 void add(java.lang.String name, int value)
           Add an entry to this entity map.
 int value(java.lang.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
 

Field Detail

mapNameToValue

protected java.util.Map<java.lang.String,java.lang.Integer> mapNameToValue
Constructor Detail

Entities.MapIntMap

Entities.MapIntMap()
Method Detail

add

public void add(java.lang.String name,
                int value)

Add an entry to this entity map.

Specified by:
add in interface Entities.EntityMap
Parameters:
name - the entity name
value - the entity value

value

public int value(java.lang.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