soot.util
Interface Numberer

All Known Subinterfaces:
IterableNumberer
All Known Implementing Classes:
ArrayNumberer, IntegerNumberer, MapNumberer, StringNumberer

public interface Numberer

A numberer converts objects to unique non-negative integers, and vice-versa.


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.
 

Method Detail

add

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


get

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


get

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


size

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