|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object scale.common.IntMap<T>
public class IntMap<T>
This class maps from an integer value to an Object.
$Id: IntMap.java,v 1.17 2007-10-04 19:58:10 burrill Exp $
Copyright 2008 by the
Scale Compiler Group,
Department of Computer Science
University of Massachusetts,
Amherst MA. 01003, USA
All Rights Reserved.
Constructor Summary | |
---|---|
IntMap(int capacity)
|
Method Summary | |
---|---|
void |
clear()
Remove all entries from the map. |
java.util.Enumeration<T> |
elements()
Return an enumeration of all of the elements in the map. |
T |
get(int key)
Find an entry in the map. |
T |
put(int key,
T value)
Place an entry in the map unless it is already there. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntMap(int capacity)
capacity
- initial capacity - should be primeMethod Detail |
---|
public void clear()
public T put(int key, T value)
key
- map from this key to the value
public T get(int key)
key
- map from this key to the value
public java.util.Enumeration<T> elements()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |