|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.vity.freerapid.plugins.webclient.utils.Entities.ArrayEntityMap
static class Entities.ArrayEntityMap
Field Summary | |
---|---|
protected int |
growBy
|
protected String[] |
names
|
protected int |
size
|
protected int[] |
values
|
Constructor Summary | |
---|---|
Entities.ArrayEntityMap()
Constructs a new instance of ArrayEntityMap . |
|
Entities.ArrayEntityMap(int growBy)
Constructs a new instance of ArrayEntityMap specifying the size by which the array should
grow. |
Method Summary | |
---|---|
void |
add(String name,
int value)
Add an entry to this entity map. |
protected void |
ensureCapacity(int capacity)
Verifies the capacity of the entity array, adjusting the size if necessary. |
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 |
Field Detail |
---|
protected int growBy
protected int size
protected String[] names
protected int[] values
Constructor Detail |
---|
public Entities.ArrayEntityMap()
ArrayEntityMap
.
public Entities.ArrayEntityMap(int growBy)
ArrayEntityMap
specifying the size by which the array should
grow.
growBy
- array will be initialized to and will grow by this amountMethod Detail |
---|
public void add(String name, int value)
Add an entry to this entity map.
add
in interface Entities.EntityMap
name
- the entity namevalue
- the entity valueprotected void ensureCapacity(int capacity)
capacity
- size the array should bepublic String name(int value)
Returns the name of the entity identified by the specified value.
name
in interface Entities.EntityMap
value
- the value to locate
public int value(String name)
Returns the value of the entity identified by the specified name.
value
in interface Entities.EntityMap
name
- the name to locate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |