JTP API Documentation

jtp.util
Class ArrayMap

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--jtp.util.ArrayMap
All Implemented Interfaces:
Map, Serializable

public class ArrayMap
extends AbstractMap
implements Serializable

ArrayMap.java Created: Sun Dec 12 18:33:22 1999

See Also:
Serialized Form

Field Summary
static Map empty
           
 
Constructor Summary
ArrayMap()
           
ArrayMap(int size)
           
ArrayMap(List keys, List values)
           
ArrayMap(Map map)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object o)
           
 boolean containsValue(Object o)
           
 Set entrySet()
           
 Object get(Object key)
           
 Object put(Object key, Object value)
           
 int size()
           
 
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, isEmpty, keySet, putAll, remove, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

empty

public static Map empty
Constructor Detail

ArrayMap

public ArrayMap()

ArrayMap

public ArrayMap(int size)

ArrayMap

public ArrayMap(List keys,
                List values)

ArrayMap

public ArrayMap(Map map)
Method Detail

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface Map
Overrides:
put in class AbstractMap

clear

public void clear()
Specified by:
clear in interface Map
Overrides:
clear in class AbstractMap

containsKey

public boolean containsKey(Object o)
Specified by:
containsKey in interface Map
Overrides:
containsKey in class AbstractMap

containsValue

public boolean containsValue(Object o)
Specified by:
containsValue in interface Map
Overrides:
containsValue in class AbstractMap

size

public int size()
Specified by:
size in interface Map
Overrides:
size in class AbstractMap

get

public Object get(Object key)
Specified by:
get in interface Map
Overrides:
get in class AbstractMap

entrySet

public Set entrySet()
Specified by:
entrySet in interface Map
Specified by:
entrySet in class AbstractMap

JTP API Documentation