org.dasein.util
Class PseudoMap<K,V>

java.lang.Object
  extended by org.dasein.util.PseudoMap<K,V>
Type Parameters:
K - the type for keys to the map
V - the type of values in the map
All Implemented Interfaces:
Map<K,V>
Direct Known Subclasses:
AttributeMap, DataTypeMap, Translator

public abstract class PseudoMap<K,V>
extends Object
implements Map<K,V>

Convenience class for things that should "look like" a Map for the purposes of JSTL, yet are not truly maps.

Last modified: $Date: 2005/08/29 01:39:09 $

Version:
$Revision: 1.4 $
Author:
george

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
PseudoMap()
           
 
Method Summary
 void clear()
          Does nothing.
 V put(K key, V val)
           
 void putAll(Map<? extends K,? extends V> map)
          Does nothing.
 V remove(Object key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, size, values
 

Constructor Detail

PseudoMap

public PseudoMap()
Method Detail

clear

public void clear()
Does nothing.

Specified by:
clear in interface Map<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Does nothing.

Specified by:
putAll in interface Map<K,V>

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Parameters:
key - ignored
Returns:
never returns
Throws:
UnsupportedOperationException - always thrown

put

public V put(K key,
             V val)
Specified by:
put in interface Map<K,V>
Parameters:
key - ignored
val - ignored
Returns:
never returns
Throws:
UnsupportedOperationException - always thrown


Copyright © 2011 enStratus Networks LLC. All Rights Reserved.