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.
|
boolean |
remove(E o)
Removes the number for a given object.
|
int |
size()
Should return the number of objects that have been assigned numbers.
|
void add(E o)
boolean remove(E o)
o
- the elementlong get(E o)
E get(long number)
int size()
Copyright © 2021 Soot OSS. All rights reserved.