public static class InvocableMapHelper.SimpleEntry<K,V> extends SimpleMapEntry<K,V>
Base.LoggingWriter, Base.StackFrame| Modifier and Type | Field and Description |
|---|---|
protected Map<K,V> |
m_map
The map.
|
m_oKey, m_oOrigValue, m_oValue, NO_VALUE| Constructor and Description |
|---|
SimpleEntry(K oKey,
V oValue)
Construct a SimpleEntry for a given key and value.
|
SimpleEntry(Map<K,V> map,
K oKey,
boolean fReadOnly)
Construct a SimpleEntry for a given map and a key.
|
SimpleEntry(Map<K,V> map,
K oKey,
V oValue,
boolean fReadOnly)
Construct a SimpleEntry for a given key and value.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkMutable()
Verify that this SimpleEntry is mutable.
|
boolean |
equals(Object o)
Compare this SimpleEntry with another object for equality.
|
V |
getValue()
Returns the value corresponding to this entry.
|
int |
hashCode()
Return a hash code value for the SimpleEntry object.
|
boolean |
isPresent()
Determine if this Entry exists in the Map.
|
void |
remove(boolean fSynthetic)
Remove this Entry from the Map if it is present in the Map.
|
V |
setValue(V oValue)
Replaces the value corresponding to this entry with the specified
value (optional operation).
|
void |
setValue(V oValue,
boolean fSynthetic)
Store the value corresponding to this entry.
|
String |
toString()
Provide a human-readable representation of the SimpleEntry object.
|
clone, extract, getKey, getOriginalValue, isOriginalPresent, isSynthetic, updateazzert, 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, waitfinalize, getClass, notify, notifyAll, wait, wait, waitgetValueextractFromKey, extractFromValuecomparingByKey, comparingByKey, comparingByValue, comparingByValuepublic SimpleEntry(Map<K,V> map, K oKey, boolean fReadOnly)
map - the parent Map for this entryoKey - the entry's keyfReadOnly - if true, the entry will be marked as
read-only, preventing the setValue() and
remove() methods from modifying the
underlying map's contentpublic SimpleEntry(Map<K,V> map, K oKey, V oValue, boolean fReadOnly)
map - the parent Map for this entryoKey - the entry's keyoValue - the entry's valuefReadOnly - if true, the entry will be marked as
read-only, preventing the setValue() and
remove() methods from modifying the
underlying map's contentpublic V getValue()
public V setValue(V oValue)
public void setValue(V oValue, boolean fSynthetic)
Unlike the other form of setValue, this
form does not return the previous value, and as a result may be
significantly less expensive (in terms of cost of execution) for
certain Map implementations.
setValue in interface InvocableMap.Entry<K,V>setValue in class SimpleMapEntry<K,V>oValue - the new value for this EntryfSynthetic - pass true only if the insertion into or
modification of the Map should be treated as a
synthetic eventpublic boolean isPresent()
InvocableMap.Entry.setValue(Object) or
InvocableMap.Entry.setValue(Object, boolean). If the Entry is present, it can
be destroyed by calling InvocableMap.Entry.remove(boolean).isPresent in interface InvocableMap.Entry<K,V>isPresent in class SimpleMapEntry<K,V>public void remove(boolean fSynthetic)
This method supports both the operation corresponding to Map.remove(java.lang.Object) as well as synthetic operations such as eviction. If the
containing Map does not differentiate between the two, then this
method will always be identical to InvocableMap.this.remove(getKey()).
remove in interface InvocableMap.Entry<K,V>remove in class SimpleMapEntry<K,V>fSynthetic - pass true only if the removal from the Map should
be treated as a synthetic eventpublic boolean equals(Object o)
public int hashCode()
public String toString()
toString in class SimpleMapEntry<K,V>protected void checkMutable()