cz.vity.freerapid.plugins.webclient.utils
Class Entities.BinaryEntityMap

java.lang.Object
  extended by cz.vity.freerapid.plugins.webclient.utils.Entities.ArrayEntityMap
      extended by cz.vity.freerapid.plugins.webclient.utils.Entities.BinaryEntityMap
All Implemented Interfaces:
Entities.EntityMap
Enclosing class:
Entities

static class Entities.BinaryEntityMap
extends Entities.ArrayEntityMap


Field Summary
 
Fields inherited from class cz.vity.freerapid.plugins.webclient.utils.Entities.ArrayEntityMap
growBy, names, size, values
 
Constructor Summary
Entities.BinaryEntityMap()
          Constructs a new instance of BinaryEntityMap.
Entities.BinaryEntityMap(int growBy)
          Constructs a new instance of ArrayEntityMap specifying the size by which the underlying array should grow.
 
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.
 
Methods inherited from class cz.vity.freerapid.plugins.webclient.utils.Entities.ArrayEntityMap
ensureCapacity, value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Entities.BinaryEntityMap

public Entities.BinaryEntityMap()
Constructs a new instance of BinaryEntityMap.


Entities.BinaryEntityMap

public Entities.BinaryEntityMap(int growBy)
Constructs a new instance of ArrayEntityMap specifying the size by which the underlying array should grow.

Parameters:
growBy - array will be initialized to and will grow by this amount
Method Detail

add

public void add(String name,
                int value)

Add an entry to this entity map.

Specified by:
add in interface Entities.EntityMap
Overrides:
add in class Entities.ArrayEntityMap
Parameters:
name - the entity name
value - 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
Overrides:
name in class Entities.ArrayEntityMap
Parameters:
value - the value to locate
Returns:
entity name associated with the specified value