|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.pf.util.CollectorDictionary
public class CollectorDictionary
This class implements the java.util.Map interface. Its main difference to a java.util.Hashtable is that for duplicate key additions the corresponding values are kept in a list. All values of this class are lists (java.util.List)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
CollectorDictionary()
Initialize the new instance with default values. |
|
CollectorDictionary(boolean allowDuplicates)
Initialize the new instance with default values. |
|
CollectorDictionary(int initialCapacity)
Initialize the new instance with default values. |
|
| 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 |
containsValue(java.lang.Object value)
Returns true if this map maps one or more keys to the specified value. |
java.util.Set |
entrySet()
Returns a set view of the mappings contained in this map. |
boolean |
equals(java.lang.Object obj)
Compares the specified object with this map for equality. |
java.lang.Object |
get(java.lang.Object key)
|
boolean |
getAcceptDuplicates()
|
int |
hashCode()
Returns the hash code value for this map. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
java.util.Iterator |
keys()
Returns an iterator over all key objects in this map. |
java.util.Set |
keySet()
Returns a set view of the keys contained in this map. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Stores the given value object under the specified key object. |
void |
putAll(java.util.Map map)
Copies all of the mappings from the specified map to this map. |
java.lang.Object |
remove(java.lang.Object key)
Removes the mapping for this key from this map if present. |
void |
setAcceptDuplicates(boolean newValue)
|
int |
size()
Returns the number of key-value mappings in this map. |
java.util.Collection |
values()
Returns a collection view of the values contained in this map. |
int |
valuesSize()
Returns a collection view of the values contained in this map. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CollectorDictionary()
public CollectorDictionary(int initialCapacity)
public CollectorDictionary(boolean allowDuplicates)
| Method Detail |
|---|
public boolean getAcceptDuplicates()
public void setAcceptDuplicates(boolean newValue)
public void clear()
clear in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object value)
containsValue in interface java.util.Mapvalue - - value whose presence in this map is to be tested.
public java.util.Set entrySet()
entrySet in interface java.util.Mappublic boolean equals(java.lang.Object obj)
equals in interface java.util.Mapequals in class java.lang.Objectpublic int hashCode()
hashCode in interface java.util.MaphashCode in class java.lang.Objectpublic boolean isEmpty()
isEmpty in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Map
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic void putAll(java.util.Map map)
putAll in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic int size()
size in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic java.util.Iterator keys()
public int valuesSize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||