Constructor and Description |
---|
IntegerNumberer() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Long o)
Tells the numberer that a new object needs to be assigned a number.
|
java.lang.Long |
get(long number)
Should return the object that was assigned the number number.
|
long |
get(java.lang.Long 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.
|
public void add(java.lang.Long o)
public long get(java.lang.Long o)
public java.lang.Long get(long number)