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
protected class AbstractKeyBasedMap.EntrySet.Entry extends SimpleMapEntry<K,V>
A Map Entry implementation that defers its value acquisition from the containing map (viaMap.get(Object)
) if the Entry is constructed with a null value.- See Also:
- Serialized Form
-
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
getValue()
Returns the value corresponding to this entry.int
hashCode()
Returns the hash code value for this map entry.V
setValue(V oValue)
Replaces the value corresponding to this entry with the specified value (optional operation).-
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
-
-
-
-
Method Detail
-
getValue
public V getValue()
Returns the value corresponding to this entry.
-
setValue
public V setValue(V oValue)
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.
-
-