Oculus Layout System API Documentation
November 25, 2002

com.oculustech.layout
Class MultiMap

java.lang.Object
  |
  +--com.oculustech.layout.MultiMap

public class MultiMap
extends java.lang.Object

Represents a map between keys and sets of values (as opposed to single values). Backed by a HashMap.


Constructor Summary
MultiMap()
           
 
Method Summary
 void clear()
          Removes all mappings from this map (optional operation).
 boolean containsKey(java.lang.Object key)
          Returns true if this map contains a mapping for the specified key.
 boolean equals(java.lang.Object o)
          Compares the specified object with this map for equality.
 java.util.Set get(java.lang.Object key)
          Returns the value to which this map maps the specified key.
 boolean isEmpty()
          Returns true if this map contains no key-value mappings.
 java.util.Set keySet()
          Returns a set view of the keys contained in this map.
 void put(java.lang.Object key, java.lang.Object value)
          Associates the specified value with the specified key in this map (optional operation).
 void putAll(MultiMap m)
          Puts all mappings from given MultiMap into this MultiMap
 java.util.Set remove(java.lang.Object key)
          Removes the mapping for this key from this map if present (optional operation).
 boolean remove(java.lang.Object key, java.lang.Object value)
          Removes the mapping for this key/value pair from this map if present.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiMap

public MultiMap()
Method Detail

clear

public void clear()
Removes all mappings from this map (optional operation).

containsKey

public boolean containsKey(java.lang.Object key)
Returns true if this map contains a mapping for the specified key.

equals

public boolean equals(java.lang.Object o)
Compares the specified object with this map for equality.
Overrides:
equals in class java.lang.Object

get

public java.util.Set get(java.lang.Object key)
Returns the value to which this map maps the specified key.

isEmpty

public boolean isEmpty()
Returns true if this map contains no key-value mappings.

keySet

public java.util.Set keySet()
Returns a set view of the keys contained in this map.

put

public void put(java.lang.Object key,
                java.lang.Object value)
Associates the specified value with the specified key in this map (optional operation).

remove

public java.util.Set remove(java.lang.Object key)
Removes the mapping for this key from this map if present (optional operation).

remove

public boolean remove(java.lang.Object key,
                      java.lang.Object value)
Removes the mapping for this key/value pair from this map if present. Returns true iif the key was associated with the given value.

putAll

public void putAll(MultiMap m)
Puts all mappings from given MultiMap into this MultiMap

Oculus Layout System API Documentation
November 25, 2002

Copyright 2001-2002 Oculus Technologies Corporation. 103 Broad Street, 5th Floor,
Boston, Massachusetts, 02110, U.S.A. All Rights Reserved.