public class SeppukuMapListener extends Base implements MapListener
Base.LoggingWriter, Base.StackFrame
Constructor and Description |
---|
SeppukuMapListener(Map map)
Construct a SeppukuMapListener for the specified front map.
|
Modifier and Type | Method and Description |
---|---|
void |
entryDeleted(MapEvent evt)
Invoked when a map entry has been removed.
|
void |
entryInserted(MapEvent evt)
Invoked when a map entry has been inserted.
|
void |
entryUpdated(MapEvent evt)
Invoked when a map entry has been updated.
|
Map |
getMap()
Returns the front Map invalidated by this listener.
|
protected void |
validate(Object oKey,
Object oValue)
Validate the specified entry and remove it from the Map object affected
by this listener if and only if the value is different (implying that
the entry has been modified elsewhere).
|
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mod, mod, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchronous
public SeppukuMapListener(Map map)
map
- the Map object to modify based on events issued to this
Listener from a different ObservableMap objectpublic Map getMap()
public void entryInserted(MapEvent evt)
entryInserted
in interface MapListener
evt
- the MapEventpublic void entryUpdated(MapEvent evt)
entryUpdated
in interface MapListener
evt
- the MapEventpublic void entryDeleted(MapEvent evt)
entryDeleted
in interface MapListener
evt
- the MapEventprotected void validate(Object oKey, Object oValue)
oKey
- the entry keyoValue
- the "new" entry value; this is potentially different
from the one in the map maintained by this Suppuku
listener