|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.webmacro.util.Atomizer
Atomize an object into an atomic number, and provide a means to turn that atomic number back into the original object.
Constructor Summary | |
Atomizer()
Create an atomizer with space for 100 atoms |
|
Atomizer(int size)
Create an atomizer with space for the specified number of atoms. |
Method Summary | |
int |
atomize(java.lang.Object o)
Put an object in the atomizer, return its atomic number. |
java.lang.Object |
clone()
Clone this Atomizer |
java.lang.Object |
get(int atom)
Get the Object matching this atom |
java.util.Iterator |
iterator()
Get an iterator capable of walking through all the values in the atomizer. |
int |
lookup(java.lang.Object o)
Get the atomic number for o. |
static void |
main(java.lang.String[] arg)
Test based on command line args |
java.lang.Object |
remove(int atom)
Remove an entry by atomic number, returning its former value. |
void |
remove(java.lang.Object o)
Remove an entry by value |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Atomizer()
public Atomizer(int size)
Method Detail |
public java.lang.Object clone()
public int lookup(java.lang.Object o)
public int atomize(java.lang.Object o)
public java.lang.Object get(int atom)
public java.lang.Object remove(int atom)
public void remove(java.lang.Object o)
public java.util.Iterator iterator()
public static void main(java.lang.String[] arg)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |