org.apache.commons.collections
Interface MultiMap

All Superinterfaces:
java.util.Map
All Known Implementing Classes:
MultiHashMap

public interface MultiMap
extends java.util.Map

This is simply a Map with slightly different semantics. Instead of returning an Object, it returns a Collection. So for example, you can put( key, new Integer(1) ); and then a Object get( key ); will return you a Collection instead of an Integer. Thus, this is simply a tag interface.

Since:
2.0
Author:
Christopher Berry, James Strachan

Method Summary
 java.lang.Object remove(java.lang.Object key, java.lang.Object item)
           
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Method Detail

remove

public java.lang.Object remove(java.lang.Object key,
                               java.lang.Object item)


Copyright © 2001-2004 The Apache Software Foundation. All Rights Reserved.