Class PrivateMaxEntriesMap.Node<K,V>
java.lang.Object
java.util.concurrent.atomic.AtomicReference<PrivateMaxEntriesMap.WeightedValue<V>>
tools.jackson.databind.util.internal.PrivateMaxEntriesMap.Node<K,V>
- All Implemented Interfaces:
Serializable, Linked<PrivateMaxEntriesMap.Node<K,V>>
- Enclosing class:
PrivateMaxEntriesMap<K,V>
static final class PrivateMaxEntriesMap.Node<K,V>
extends AtomicReference<PrivateMaxEntriesMap.WeightedValue<V>>
implements Linked<PrivateMaxEntriesMap.Node<K,V>>
A node contains the key, the weighted value, and the linkage pointers on
the page-replacement algorithm's data structures.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final K(package private) PrivateMaxEntriesMap.Node<K, V> (package private) PrivateMaxEntriesMap.Node<K, V> -
Constructor Summary
ConstructorsConstructorDescriptionNode(K key, PrivateMaxEntriesMap.WeightedValue<V> weightedValue) Creates a new, unlinked node. -
Method Summary
Modifier and TypeMethodDescriptiongetNext()Retrieves the next element or null if either the element is unlinked or the last element on the deque.Retrieves the previous element or null if either the element is unlinked or the first element on the deque.(package private) VgetValue()Retrieves the value held by the currentWeightedValue.voidsetNext(PrivateMaxEntriesMap.Node<K, V> next) Sets the next element or null if there is no link.voidsetPrevious(PrivateMaxEntriesMap.Node<K, V> prev) Sets the previous element or null if there is no link.Methods inherited from class AtomicReference
accumulateAndGet, compareAndExchange, compareAndExchangeAcquire, compareAndExchangeRelease, compareAndSet, get, getAcquire, getAndAccumulate, getAndSet, getAndUpdate, getOpaque, getPlain, lazySet, set, setOpaque, setPlain, setRelease, toString, updateAndGet, weakCompareAndSet, weakCompareAndSetAcquire, weakCompareAndSetPlain, weakCompareAndSetRelease, weakCompareAndSetVolatile
-
Field Details
-
key
-
prev
PrivateMaxEntriesMap.Node<K,V> prev -
next
PrivateMaxEntriesMap.Node<K,V> next
-
-
Constructor Details
-
Node
Node(K key, PrivateMaxEntriesMap.WeightedValue<V> weightedValue) Creates a new, unlinked node.
-
-
Method Details
-
getPrevious
Description copied from interface:LinkedRetrieves the previous element or null if either the element is unlinked or the first element on the deque.- Specified by:
getPreviousin interfaceLinked<K>
-
setPrevious
Description copied from interface:LinkedSets the previous element or null if there is no link.- Specified by:
setPreviousin interfaceLinked<K>
-
getNext
-
setNext
-
getValue
V getValue()Retrieves the value held by the currentWeightedValue.
-