T - public class WeakMapNumberer<T extends Numberable> extends Object implements IterableNumberer<T>
| Constructor and Description |
|---|
WeakMapNumberer() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(T o)
Tells the numberer that a new object needs to be assigned a number.
|
boolean |
contains(T o) |
T |
get(long number)
Should return the object that was assigned the number number.
|
long |
get(T o)
Should return the number that was assigned to object o that was previously passed as an argument to add().
|
Iterator<T> |
iterator()
Returns an iterator over all objects added to the numberer.
|
boolean |
remove(T o)
Removes the number for a given object.
|
int |
size()
Should return the number of objects that have been assigned numbers.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic void add(T o)
Numbereradd in interface Numberer<T extends Numberable>public boolean remove(T o)
Numbererremove in interface Numberer<T extends Numberable>o - the elementpublic long get(T o)
Numbererget in interface Numberer<T extends Numberable>public T get(long number)
Numbererget in interface Numberer<T extends Numberable>public int size()
Numberersize in interface Numberer<T extends Numberable>public boolean contains(T o)
public Iterator<T> iterator()
IterableNumbereriterator in interface Iterable<T extends Numberable>iterator in interface IterableNumberer<T extends Numberable>Copyright © 2020 Soot OSS. All rights reserved.