soot.util
Class MapNumberer

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

public class MapNumberer
extends Object
implements Numberer


Constructor Summary
MapNumberer()
           
 
Method Summary
 void add(Object o)
          Tells the numberer that a new object needs to be assigned a number.
 boolean contains(Object o)
           
 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

MapNumberer

public MapNumberer()
Method Detail

add

public void add(Object o)
Description copied from interface: Numberer
Tells the numberer that a new object needs to be assigned a number.

Specified by:
add in interface Numberer

get

public Object get(long number)
Description copied from interface: Numberer
Should return the object that was assigned the number number.

Specified by:
get in interface Numberer

get

public long get(Object o)
Description copied from interface: Numberer
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

size

public int size()
Description copied from interface: Numberer
Should return the number of objects that have been assigned numbers.

Specified by:
size in interface Numberer

contains

public boolean contains(Object o)