Package soot.util
Class MapNumberer<T>
- java.lang.Object
-
- soot.util.MapNumberer<T>
-
-
Constructor Summary
Constructors Constructor Description MapNumberer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(T o)Tells the numberer that a new object needs to be assigned a number.booleancontains(Object o)Tget(long number)Should return the object that was assigned the number number.longget(Object o)Should return the number that was assigned to object o that was previously passed as an argument to add().booleanremove(T o)Removes the number for a given object.intsize()Should return the number of objects that have been assigned numbers.
-
-
-
Method Detail
-
add
public void add(T o)
Description copied from interface:NumbererTells the numberer that a new object needs to be assigned a number.
-
get
public T get(long number)
Description copied from interface:NumbererShould return the object that was assigned the number number.
-
get
public long get(Object o)
Description copied from interface:NumbererShould return the number that was assigned to object o that was previously passed as an argument to add().
-
size
public int size()
Description copied from interface:NumbererShould return the number of objects that have been assigned numbers.
-
contains
public boolean contains(Object o)
-
-