Package com.tangosol.util
Class SafeLinkedList.Node
- java.lang.Object
- 
- com.tangosol.util.Base
- 
- com.tangosol.util.SafeLinkedList.Node
 
 
- 
- All Implemented Interfaces:
- Serializable,- Cloneable
 - Direct Known Subclasses:
- RecyclingLinkedList.Node
 - Enclosing class:
- SafeLinkedList
 
 protected static class SafeLinkedList.Node extends Base implements Cloneable, Serializable A Node in the List. Nodes are doubly-linked and store a value.- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.tangosol.util.BaseBase.LoggingWriter
 
- 
 - 
Field SummaryFields Modifier and Type Field Description protected SafeLinkedList.Nodem_nodeNextThe next Node in the List.protected SafeLinkedList.Nodem_nodePrevThe previous Node in the List.protected Objectm_objectThe value stored in the Node.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected voiddelink()Remove this Node from the List.protected Objectdiscard()Delink this Node and discard its value.booleanequals(Object that)Compare this Node with an object for equality.booleanequalsValue(Object oThat)Compare this Node's value with another value for equality.SafeLinkedList.NodegetNext()ObjectgetObject()SafeLinkedList.NodegetPrevious()protected voidlinkAfter(SafeLinkedList.Node prev)Add this Node to the List following the specified Node.protected voidlinkBefore(SafeLinkedList.Node next)Add this Node to the List preceding the specified Node.protected voidsetObject(Object o)StringtoString()Render the Node as a String.- 
Methods inherited from class com.tangosol.util.Baseazzert, 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
 
- 
 
- 
- 
- 
Field Detail- 
m_objectprotected Object m_object The value stored in the Node.
 - 
m_nodeNextprotected SafeLinkedList.Node m_nodeNext The next Node in the List.
 - 
m_nodePrevprotected SafeLinkedList.Node m_nodePrev The previous Node in the List.
 
- 
 - 
Constructor Detail- 
Nodepublic Node() Construct a blank Node.
 - 
Nodepublic Node(Object o) Construct a Node with a value.- Parameters:
- o- the value to store in the Node
 
 
- 
 - 
Method Detail- 
getObjectpublic Object getObject() - Returns:
- the Node's Object value
 
 - 
setObjectprotected void setObject(Object o) - Parameters:
- o- the new Object value for this Node
 
 - 
getNextpublic SafeLinkedList.Node getNext() - Returns:
- the Node that follows this Node or null
 
 - 
getPreviouspublic SafeLinkedList.Node getPrevious() - Returns:
- the Node that precedes this Node or null
 
 - 
linkBeforeprotected void linkBefore(SafeLinkedList.Node next) Add this Node to the List preceding the specified Node.- Parameters:
- next- the Node to add this Node before
 
 - 
linkAfterprotected void linkAfter(SafeLinkedList.Node prev) Add this Node to the List following the specified Node.- Parameters:
- prev- the Node to add this Node after
 
 - 
delinkprotected void delink() Remove this Node from the List.
 - 
discardprotected Object discard() Delink this Node and discard its value.- Returns:
- the value of this Node before it was discarded
 
 - 
equalspublic boolean equals(Object that) Compare this Node with an object for equality.
 - 
equalsValuepublic boolean equalsValue(Object oThat) Compare this Node's value with another value for equality.- Returns:
- true if the specified object is equal to this Node's value
 
 - 
toStringpublic String toString() Render the Node as a String.
 
- 
 
-