soot.util
Class SmallNumberedMap

java.lang.Object
  extended by soot.util.SmallNumberedMap

public final class SmallNumberedMap
extends Object

A java.util.Map-like map with Numberable objects as the keys.

Author:
Ondrej Lhotak

Constructor Summary
SmallNumberedMap(ArrayNumberer universe)
           
 
Method Summary
 Object get(Numberable key)
          Returns the value associated with a given key.
 Iterator iterator()
          Returns an iterator over the non-null values.
 Iterator keyIterator()
          Returns an iterator over the keys with non-null values.
 int nonNullSize()
          Returns the number of non-null values in this map.
 boolean put(Numberable key, Object value)
          Associates a value with a key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SmallNumberedMap

public SmallNumberedMap(ArrayNumberer universe)
Method Detail

put

public boolean put(Numberable key,
                   Object value)
Associates a value with a key.


get

public Object get(Numberable key)
Returns the value associated with a given key.


nonNullSize

public int nonNullSize()
Returns the number of non-null values in this map.


keyIterator

public Iterator keyIterator()
Returns an iterator over the keys with non-null values.


iterator

public Iterator iterator()
Returns an iterator over the non-null values.