public class MapChangeTrackerImpl extends AbstractChangeTracker implements MapChangeTracker
MapChangeTracker
.add, change, rem
Constructor and Description |
---|
MapChangeTrackerImpl(Map map,
boolean autoOff)
Constructor; supply delegate map.
|
Modifier and Type | Method and Description |
---|---|
protected void |
add(Object obj)
Mark the given value as added.
|
void |
added(Object key,
Object val)
Record that the given entry was added to the map.
|
protected void |
change(Object key)
Mark the given value as changed.
|
void |
changed(Object key,
Object oldVal,
Object newVal)
Record that the given entry was altered.
|
boolean |
getTrackKeys()
Whether to track keys or values.
|
protected void |
remove(Object obj)
Mark the given value as removed.
|
void |
removed(Object key,
Object val)
Record that the given entry was removed from the map.
|
void |
setTrackKeys(boolean keys)
Whether to track keys or values.
|
added, changed, getAdded, getAutoOff, getChanged, getNextSequence, getRemoved, initialSequence, isTracking, newSet, removed, reset, setAutoOff, setNextSequence, startTracking, stopTracking
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAdded, getChanged, getNextSequence, getRemoved, isTracking, setNextSequence, startTracking, stopTracking
public MapChangeTrackerImpl(Map map, boolean autoOff)
public boolean getTrackKeys()
MapChangeTracker
getTrackKeys
in interface MapChangeTracker
public void setTrackKeys(boolean keys)
MapChangeTracker
setTrackKeys
in interface MapChangeTracker
public void added(Object key, Object val)
MapChangeTracker
added
in interface MapChangeTracker
public void removed(Object key, Object val)
MapChangeTracker
removed
in interface MapChangeTracker
public void changed(Object key, Object oldVal, Object newVal)
MapChangeTracker
changed
in interface MapChangeTracker
protected void add(Object obj)
AbstractChangeTracker
add
in class AbstractChangeTracker
protected void remove(Object obj)
AbstractChangeTracker
remove
in class AbstractChangeTracker
protected void change(Object key)
AbstractChangeTracker
change
in class AbstractChangeTracker
Copyright © 2006–2020 Apache Software Foundation. All rights reserved.