soot.util
Class SmallNumberedMap

java.lang.Object
  |
  +--soot.util.SmallNumberedMap

public final class SmallNumberedMap
extends java.lang.Object

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


Constructor Summary
SmallNumberedMap(Numberer universe)
           
 
Method Summary
 java.lang.Object get(Numberable key)
          Returns the value associated with a given key.
 java.util.Iterator iterator()
          Returns an iterator over the non-null values.
 java.util.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, java.lang.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(Numberer universe)
Method Detail

put

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

get

public java.lang.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 java.util.Iterator keyIterator()
Returns an iterator over the keys with non-null values.

iterator

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