public interface Numberer<E>
Modifier and Type | Method and Description |
---|---|
void |
add(E o)
Tells the numberer that a new object needs to be assigned a number.
|
long |
get(E o)
Should return the number that was assigned to object o that was
previously passed as an argument to add().
|
E |
get(long number)
Should return the object that was assigned the number number.
|
int |
size()
Should return the number of objects that have been assigned numbers.
|
void add(E o)
long get(E o)
E get(long number)
int size()