edu.rice.cs.plt.collect
Class DictionaryMap<K,V>

java.lang.Object
  extended by edu.rice.cs.plt.collect.AbstractKeyBasedMap<K,V>
      extended by edu.rice.cs.plt.collect.DictionaryMap<K,V>
All Implemented Interfaces:
LambdaMap<K,V>, Lambda<K,V>, java.io.Serializable, java.util.Map<K,V>

public class DictionaryMap<K,V>
extends AbstractKeyBasedMap<K,V>
implements java.io.Serializable

A map wrapping a Dictionary object. Defined for compatibility with legacy APIs.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.rice.cs.plt.collect.AbstractKeyBasedMap
AbstractKeyBasedMap.EntrySet
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
DictionaryMap(java.util.Dictionary<K,V> d)
           
 
Method Summary
 void clear()
          Throws an UnsupportedOperationException.
 boolean containsKey(java.lang.Object key)
          Returns keySet().contains(key).
 V get(java.lang.Object key)
           
 boolean isEmpty()
          Returns keySet().isEmpty().
 PredicateSet<K> keySet()
           
 V put(K key, V value)
          Throws an UnsupportedOperationException.
 V remove(java.lang.Object key)
          Throws an UnsupportedOperationException.
 int size()
          Returns keySet().size().
 V value(K key)
          Returns get(key).
 
Methods inherited from class edu.rice.cs.plt.collect.AbstractKeyBasedMap
containsValue, entrySet, equals, hashCode, mapEntryForKey, putAll, toString, values
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DictionaryMap

public DictionaryMap(java.util.Dictionary<K,V> d)
Method Detail

get

public V get(java.lang.Object key)
Specified by:
get in interface java.util.Map<K,V>
Specified by:
get in class AbstractKeyBasedMap<K,V>

keySet

public PredicateSet<K> keySet()
Specified by:
keySet in interface LambdaMap<K,V>
Specified by:
keySet in interface java.util.Map<K,V>
Specified by:
keySet in class AbstractKeyBasedMap<K,V>

value

public V value(K key)
Description copied from class: AbstractKeyBasedMap
Returns get(key).

Specified by:
value in interface Lambda<K,V>
Overrides:
value in class AbstractKeyBasedMap<K,V>

size

public int size()
Description copied from class: AbstractKeyBasedMap
Returns keySet().size().

Specified by:
size in interface java.util.Map<K,V>
Overrides:
size in class AbstractKeyBasedMap<K,V>

isEmpty

public boolean isEmpty()
Description copied from class: AbstractKeyBasedMap
Returns keySet().isEmpty().

Specified by:
isEmpty in interface java.util.Map<K,V>
Overrides:
isEmpty in class AbstractKeyBasedMap<K,V>

containsKey

public boolean containsKey(java.lang.Object key)
Description copied from class: AbstractKeyBasedMap
Returns keySet().contains(key).

Specified by:
containsKey in interface java.util.Map<K,V>
Overrides:
containsKey in class AbstractKeyBasedMap<K,V>

put

public V put(K key,
             V value)
Description copied from class: AbstractKeyBasedMap
Throws an UnsupportedOperationException.

Specified by:
put in interface java.util.Map<K,V>
Overrides:
put in class AbstractKeyBasedMap<K,V>

remove

public V remove(java.lang.Object key)
Description copied from class: AbstractKeyBasedMap
Throws an UnsupportedOperationException.

Specified by:
remove in interface java.util.Map<K,V>
Overrides:
remove in class AbstractKeyBasedMap<K,V>

clear

public void clear()
Description copied from class: AbstractKeyBasedMap
Throws an UnsupportedOperationException.

Specified by:
clear in interface java.util.Map<K,V>
Overrides:
clear in class AbstractKeyBasedMap<K,V>