|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.util.AbstractMap java.util.HashMap org.onemind.commons.java.datastructure.TrackedMap
A map that has it's map values changes tracked. It uses an inner map to keep the unchanged value and itself to track the changes
Constructor Summary | |
TrackedMap()
{@inheritDoc} |
|
TrackedMap(int initialCapacity)
{@inheritDoc} |
|
TrackedMap(int initialCapacity,
float loadFactor)
{@inheritDoc} |
|
TrackedMap(java.util.Map map)
{@inheritDoc} |
Method Summary | |
void |
clear()
|
void |
clearChanges()
Clear all the changes |
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
java.util.Set |
getChangedKeySet()
Return the key set of changed values |
boolean |
hasChanges()
Return whether this map has been changes |
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
void |
makeUpToDate()
Make this map as up-to-date. |
java.lang.Object |
remove(java.lang.Object key)
|
int |
size()
|
java.util.Collection |
values()
|
Methods inherited from class java.util.HashMap |
clone, put, putAll |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
Constructor Detail |
public TrackedMap()
public TrackedMap(int initialCapacity)
public TrackedMap(int initialCapacity, float loadFactor)
public TrackedMap(java.util.Map map)
Method Detail |
public boolean hasChanges()
public java.util.Set getChangedKeySet()
public java.lang.Object get(java.lang.Object key)
public void makeUpToDate()
public void clearChanges()
public void clear()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object value)
public java.util.Set entrySet()
public boolean isEmpty()
public java.util.Set keySet()
public java.lang.Object remove(java.lang.Object key)
public int size()
public java.util.Collection values()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |