|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.barracudamvc.plankton.data.AbstractPData
org.barracudamvc.plankton.data.PHashMap
public class PHashMap
This class extends AbstractPData (which provides the parental/statemap functionality) and delegates most of the Map functionality back to an underlying HashMap
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Field Summary |
---|
Fields inherited from class org.barracudamvc.plankton.data.AbstractPData |
---|
inheritParents, parent, state |
Constructor Summary | |
---|---|
PHashMap()
|
Method Summary | |
---|---|
void |
clear()
Removes all mappings from this map (optional operation). |
Object |
clone()
Returns a shallow copy of this ArrayList instance. |
boolean |
containsKey(Object key)
Returns true if this map contains a mapping for the specified key. |
boolean |
containsValue(Object value)
Returns true if this map maps one or more keys to the specified value. |
Set |
entrySet()
Returns a set view of the mappings contained in this map. |
boolean |
equals(Object obj)
Check object for equality. |
Object |
get(Object key)
Returns the value to which this map maps the specified key. |
int |
hashCode()
Returns the hash code value for this list. |
boolean |
isEmpty()
Returns true if this map contains no key-value mappings. |
Set |
keySet()
Returns a set view of the keys contained in this map. |
Object |
put(Object key,
Object value)
Associates the specified value with the specified key in this map (optional operation). |
void |
putAll(Map imap)
Copies all of the mappings from the specified map to this map (optional operation). |
Object |
remove(Object key)
Removes the mapping for this key from this map if present (optional operation). |
void |
setStore(Map imap)
Set the underlying store (you only really need to use this method if you want to store the data in something other than a HashMap, which is the default) |
int |
size()
Returns the number of key-value mappings in this map. |
Collection |
values()
Returns a collection view of the values contained in this map. |
Methods inherited from class org.barracudamvc.plankton.data.AbstractPData |
---|
clearState, getParent, getRootParent, getState, getStateKeys, getStateStore, isInheritParents, putState, removeState, setInheritParents, setParent |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.barracudamvc.plankton.data.PData |
---|
getParent, getRootParent, isInheritParents, setInheritParents, setParent |
Methods inherited from interface org.barracudamvc.plankton.data.StateMap |
---|
clearState, getState, getStateKeys, getStateStore, putState, removeState |
Constructor Detail |
---|
public PHashMap()
Method Detail |
---|
public void setStore(Map imap)
imap
- the Map structure to be used as the underlying
storepublic void clear()
clear
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object value)
containsValue
in interface Map
public Set entrySet()
entrySet
in interface Map
public Object get(Object key)
get
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public Set keySet()
keySet
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public void putAll(Map imap)
putAll
in interface Map
public Object remove(Object key)
remove
in interface Map
public int size()
size
in interface Map
public Collection values()
values
in interface Map
public Object clone()
clone
in class Object
public boolean equals(Object obj)
equals
in interface Map
equals
in class Object
obj
- the object we're comparing against
public int hashCode()
hashCode
in interface Map
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |