|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsoot.util.IntegerNumberer
public class IntegerNumberer
A numberer that associates each number with the corresponding Long object.
| Constructor Summary | |
|---|---|
IntegerNumberer()
|
|
| Method Summary | |
|---|---|
void |
add(Object o)
Tells the numberer that a new object needs to be assigned a number. |
Object |
get(long number)
Should return the object that was assigned the number number. |
long |
get(Object o)
Should return the number that was assigned to object o that was previously passed as an argument to add(). |
int |
size()
Should return the number of objects that have been assigned numbers. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IntegerNumberer()
| Method Detail |
|---|
public void add(Object o)
add in interface Numbererpublic long get(Object o)
get in interface Numbererpublic Object get(long number)
get in interface Numbererpublic int size()
size in interface Numberer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||