soot.util
Class IntegerNumberer

java.lang.Object
  extended by soot.util.IntegerNumberer
All Implemented Interfaces:
Numberer

public class IntegerNumberer
extends Object
implements Numberer

A numberer that associates each number with the corresponding Long object.


Constructor Summary
IntegerNumberer()
           
 
Method Summary
 void add(Object o)
          Tells the numberer that a new object needs to be assigned a number.
 Object get(long number)
          Should return the object that was assigned the number number.
 long get(Object 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IntegerNumberer

public IntegerNumberer()
Method Detail

add

public void add(Object o)
Tells the numberer that a new object needs to be assigned a number.

Specified by:
add in interface Numberer

get

public long get(Object o)
Should return the number that was assigned to object o that was previously passed as an argument to add().

Specified by:
get in interface Numberer

get

public Object get(long number)
Should return the object that was assigned the number number.

Specified by:
get in interface Numberer

size

public int size()
Should return the number of objects that have been assigned numbers.

Specified by:
size in interface Numberer