|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sapportals.portal.prt.util.MultiValuedHashMap
public class MultiValuedHashMap
Copyright (c) SAP Portals Europe GmbH 2001
| Constructor Summary | |
|---|---|
MultiValuedHashMap()
Constructor using defaults for the initial capacity |
|
MultiValuedHashMap(int initialCapacity)
Constructor with specified initial capacity, i.e. an assumption about how many keys will show up. |
|
| Method Summary | |
|---|---|
void |
clear()
Clears the map, i.e. removes all key to value assigments. |
void |
getKeys(Object[] keys)
Gets an Array of keys. |
Enumeration |
getKeysEnumeration()
Gets an Enumeration of all keys |
Object |
getValue(Object key)
Gets a single value assigned to one key. |
int |
getValueCount(Object key)
Gets the number of values assigned to a key. |
void |
getValues(Object key,
Object[] values)
Gets all values assigned to the specified key as an Array |
Iterator |
getValuesIterator(Object key)
Gets an Iterator of all values assigned to a key. |
void |
put(Object key,
Object value)
Adds a key->value couple to the map. |
void |
remove(Object key)
Removes a key with all its assigned values. |
void |
remove(Object key,
Object value)
Removes a key/value combination from the map. |
int |
size()
Gets the number of keys that were assigned values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MultiValuedHashMap()
public MultiValuedHashMap(int initialCapacity)
initialCapacity - the initial capacity in terms of keys| Method Detail |
|---|
public void put(Object key,
Object value)
put in interface MultiValuedMapkey - the key identifying a set of valuesvalue - one more value assignd to keypublic void remove(Object key)
remove in interface MultiValuedMapkey - The key.
public void remove(Object key,
Object value)
remove in interface MultiValuedMapkey - The key.value - The value that was possibly assigned to key and should
be removed now.public Enumeration getKeysEnumeration()
Enumeration of all keys
getKeysEnumeration in interface MultiValuedMapEnumeration of all keyspublic void getKeys(Object[] keys)
Array of keys.
getKeys in interface MultiValuedMapkeys - an Array to contain all the keys that have values
assigned.keys - public int size()
size in interface MultiValuedMappublic int getValueCount(Object key)
getValueCount in interface MultiValuedMapkey - the key to retrieve the number of values assigned to
public Iterator getValuesIterator(Object key)
Iterator of all values assigned to a key.
getValuesIterator in interface MultiValuedMapkey - the key to get all values for.
Iterator of all values assigned to key, or
possibly null if no value at all was assigned to
key.
public void getValues(Object key,
Object[] values)
Array
getValues in interface MultiValuedMapkey - The name of the queried keyvalues - An array of values of a key.public Object getValue(Object key)
getValue in interface MultiValuedMapkey - the key to get the value for.
public void clear()
clear in interface MultiValuedMap| Access Rights |
|---|
| SC | DC | Public Part | ACH |
|---|---|---|---|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/api
|
api
|
EP-PIN
|
[sap.com] EP-BASIS-API
|
[sap.com]
|
default
|
EP-PIN-PRT
|
[sap.com] EP-BASIS-API
|
[sap.com] tc/epbc/prt/lib/api
|
api
|
EP-PIN
|
|
SAP NetWeaver 7.30 Enterprise Portal (SP03) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||