|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ten60.netkernel.util.PairList
A low memory implementation of a pair list when you want a map to link two values together but don't need to look them up. Keys and values are stored alternately in an array list.
Constructor Summary | |
PairList(int aSize)
Creates a new instance of PairList |
Method Summary | |
boolean |
contains(Object aValue1,
Object aValue2)
returns true if the values are in the collection |
Object |
getValue1(int aIndex)
return the key value at the given index |
Object |
getValue2(int aIndex)
return the value value at the given index |
void |
put(Object aValue1,
Object aValue2)
put a new key value pair in the collection |
int |
size()
return the number of pairs in the collection |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PairList(int aSize)
Method Detail |
public void put(Object aValue1, Object aValue2)
public int size()
public Object getValue1(int aIndex)
public Object getValue2(int aIndex)
public boolean contains(Object aValue1, Object aValue2)
|
NetKernel APIs |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |