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