edu.internet2.middleware.grouper.ui.util
Class MapWrapper<K,V>

java.lang.Object
  extended by edu.internet2.middleware.grouper.ui.util.MapWrapper<K,V>
Type Parameters:
K -
V -
All Implemented Interfaces:
Serializable, Map<K,V>

public class MapWrapper<K,V>
extends Object
implements Map<K,V>, Serializable

simple wrapper of map

Version:
$Id: MapWrapper.java,v 1.1 2009/10/11 22:04:17 mchyzer Exp $
Author:
mchyzer
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
MapWrapper()
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object key)
           
 boolean containsValue(Object value)
           
 Set<Map.Entry<K,V>> entrySet()
           
 V get(Object key)
           
 boolean isEmpty()
          isEmpty
 Set<K> keySet()
           
 V put(K key, V value)
           
 void putAll(Map t)
           
 V remove(Object key)
           
 int size()
          size
 Collection<V> values()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

MapWrapper

public MapWrapper()
Method Detail

size

public int size()
size

Specified by:
size in interface Map<K,V>
See Also:
Map.size()

isEmpty

public boolean isEmpty()
isEmpty

Specified by:
isEmpty in interface Map<K,V>
See Also:
Map.isEmpty()

containsKey

public boolean containsKey(Object key)
Specified by:
containsKey in interface Map<K,V>
See Also:
Map.containsKey(java.lang.Object)

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,V>
See Also:
Map.containsValue(java.lang.Object)

get

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

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Parameters:
key -
value -
Returns:
the object it replaces (or null if you dont care)

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
See Also:
Map.remove(java.lang.Object)

putAll

public void putAll(Map t)
Specified by:
putAll in interface Map<K,V>
Parameters:
t -
See Also:
Map.putAll(Map)

clear

public void clear()
Specified by:
clear in interface Map<K,V>
See Also:
Map.clear()

keySet

public Set<K> keySet()
Specified by:
keySet in interface Map<K,V>
See Also:
Map.keySet()

values

public Collection<V> values()
Specified by:
values in interface Map<K,V>
See Also:
Map.values()

entrySet

public Set<Map.Entry<K,V>> entrySet()
Specified by:
entrySet in interface Map<K,V>
See Also:
Map.entrySet()