Package com.tangosol.util
Class AbstractKeyBasedMap.EntrySet.Entry
java.lang.Object
com.tangosol.util.Base
com.tangosol.util.SimpleMapEntry<K,V>
com.tangosol.util.AbstractKeyBasedMap.EntrySet.Entry
- All Implemented Interfaces:
InvocableMap.Entry<K,
,V> MapTrigger.Entry<K,
,V> QueryMap.Entry<K,
,V> Serializable
,Cloneable
,Map.Entry<K,
V>
- Direct Known Subclasses:
ObservableSplittingBackingCache.EntrySet.Entry
,OpenHashMap.EntrySet.Entry
,SerializationCache.EntrySet.Entry
- Enclosing class:
AbstractKeyBasedMap.EntrySet
A Map Entry implementation that defers its value acquisition from
the containing map (via
Map.get(Object)
) if the Entry is
constructed with a null value.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter
-
Field Summary
Fields inherited from class com.tangosol.util.SimpleMapEntry
m_oKey, m_oOrigValue, m_oValue, NO_VALUE
-
Constructor Summary
-
Method Summary
Methods inherited from class com.tangosol.util.SimpleMapEntry
clone, equals, extract, getKey, getOriginalValue, isOriginalPresent, isPresent, isSynthetic, remove, setValue, toString, update
Methods inherited from class com.tangosol.util.Base
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, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, 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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.tangosol.util.InvocableMap.Entry
asBinaryEntry, getValue, getValue
Methods inherited from interface com.tangosol.util.QueryMap.Entry
extractFromKey, extractFromValue
-
Constructor Details
-
Entry
Construct an Entry.- Parameters:
oKey
- the Entry keyoValue
- the Entry value (optional)
-
-
Method Details
-
getValue
Returns the value corresponding to this entry. -
setValue
Replaces the value corresponding to this entry with the specified value (optional operation). (Writes through to the map.) -
hashCode
public int hashCode()Returns the hash code value for this map entry. The hash code of a map entry e is defined to be:(e.getKey()==null ? 0 : e.getKey().hashCode()) ^ (e.getValue()==null ? 0 : e.getValue().hashCode())
This ensures that e1.equals(e2) implies that e1.hashCode()==e2.hashCode() for any two Entries e1 and e2, as required by the general contract of Object.hashCode.
-