org.apache.cocoon.el.impl.objectmodel
Class UnmodifiableMultiMap

java.lang.Object
  extended byorg.apache.commons.collections.map.AbstractMapDecorator
      extended byorg.apache.cocoon.el.impl.objectmodel.UnmodifiableMultiMap
All Implemented Interfaces:
IterableMap, Map, MultiMap, Unmodifiable

public class UnmodifiableMultiMap
extends AbstractMapDecorator
implements MultiMap, IterableMap, Unmodifiable

This class brings equally the same functionality as UnmodifiableMap but also implements MultiMap interface.

Use this class to wrap MultiMaps only.


Nested Class Summary
 
Nested classes inherited from class java.util.Map
Map.Entry
 
Field Summary
 
Fields inherited from class org.apache.commons.collections.map.AbstractMapDecorator
map
 
Method Summary
 void clear()
           
static MultiMap decorate(MultiMap map)
           
 Set entrySet()
           
 Set keySet()
           
 MapIterator mapIterator()
           
 Object put(Object key, Object value)
           
 void putAll(Map mapToCopy)
           
 Object remove(Object key)
           
 Object remove(Object key, Object item)
           
 Collection values()
           
 
Methods inherited from class org.apache.commons.collections.map.AbstractMapDecorator
containsKey, containsValue, equals, get, getMap, hashCode, isEmpty, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.commons.collections.MultiMap
containsValue, get, size
 
Methods inherited from interface java.util.Map
containsKey, equals, hashCode, isEmpty
 

Method Detail

decorate

public static MultiMap decorate(MultiMap map)

values

public Collection values()
Specified by:
values in interface MultiMap

entrySet

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

keySet

public Set keySet()
Specified by:
keySet in interface Map

mapIterator

public MapIterator mapIterator()
Specified by:
mapIterator in interface IterableMap

clear

public void clear()
Specified by:
clear in interface Map

put

public Object put(Object key,
                  Object value)
Specified by:
put in interface MultiMap

putAll

public void putAll(Map mapToCopy)
Specified by:
putAll in interface Map

remove

public Object remove(Object key)
Specified by:
remove in interface MultiMap

remove

public Object remove(Object key,
                     Object item)
Specified by:
remove in interface MultiMap


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.