Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

com.gentleware.services.util

Class MultiHashMap

com.gentleware.services.util.MultiHashMap

public class MultiHashMap


A MultiMap is 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.
Authors:
Stephen Colebourne
Since:
2.0


 Attribute Summary
private String  mName
 
private static int  sCount
 
arrow_up
 

 Constructor Summary
public   MultiHashMap()
 
public   MultiHashMap(int initialCapacity)
 
public   MultiHashMap(int initialCapacity, float loadFactor)
 
public   MultiHashMap(Map mapToCopy)
 
arrow_up
 

 Method Summary
public void   clear()
 
public Object   clone()
 
public boolean   containsValue(Object value)
 
public String   getName()
 
public Object   put(Object key, Object value)
 
public void   putAll(Map mapToPut)
 
public Object   remove(Object key, Object item)
 
private void   setName()
 
public Collection   values()
 
arrow_up
 

Tagged Values
static false
 

 Attribute Detail

mName

private String mName

arrow_up


sCount

private static int sCount

arrow_up
 Constructor Detail

MultiHashMap

public MultiHashMap MultiHashMap()

Returns:
arrow_up


MultiHashMap

public MultiHashMap MultiHashMap(int initialCapacity)

Parameters:
initialCapacity -
Returns:
arrow_up


MultiHashMap

public MultiHashMap MultiHashMap(int initialCapacity, float loadFactor)

Parameters:
initialCapacity -
loadFactor -
Returns:
arrow_up


MultiHashMap

public MultiHashMap MultiHashMap(Map mapToCopy)

Parameters:
mapToCopy -
Returns:
arrow_up
 Method Detail

clear

public void clear()

arrow_up


clone

public Object clone()

Returns:
arrow_up


containsValue

public boolean containsValue(Object value)

Parameters:
value -
Returns:
arrow_up


getName

public String getName()

Returns:
arrow_up


put

public Object put(Object key, Object value)

Parameters:
key -
value -
Returns:
arrow_up


putAll

public void putAll(Map mapToPut)

Parameters:
mapToPut -
arrow_up


remove

public Object remove(Object key, Object item)

Parameters:
key -
item -
Returns:
arrow_up


setName

private void setName()

arrow_up


values

public Collection values()

Returns:
arrow_up
Created  2004 - 10 - 21

    Poseidon for UMLTM
  UMLdoc
 PREV  CLASSIFIER    NEXT  CLASSIFIER     FRAMES    NO FRAMES      
SUMMARY:   INNER | ATTR | ASSOC | CONSTR | METHOD     DETAIL:   INNER | ATTR | ASSOC | CONSTR | METHOD     DIAGRAMS:   COLLAB | SEQ | STATE | ACTIV

Generated with Poseidon for UMLTM.
Poseidon is a registered trademark of Gentleware AG in Germany, USA and other countries. Copyright 2003-2004 Gentleware AG, Schanzenstr. 70, 20357 Hamburg, Germany. All Rights Reserved.

UML is a trademark or registered trademark of Object Management Group, Inc. in the U.S. and other countries.