Class WriteOrderDeque<E extends WriteOrderDeque.WriteOrder<E>>
java.lang.Object
java.util.AbstractCollection<E>
com.github.benmanes.caffeine.cache.AbstractLinkedDeque<E>
com.github.benmanes.caffeine.cache.WriteOrderDeque<E>
- Type Parameters:
E- the type of elements held in this collection
- All Implemented Interfaces:
LinkedDeque<E>, Iterable<E>, Collection<E>, Deque<E>, Queue<E>, SequencedCollection<E>
A linked deque implementation used to represent a write-order queue.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceAn element that is linked on theDeque.Nested classes/interfaces inherited from class AbstractLinkedDeque
AbstractLinkedDeque.AbstractLinkedIteratorNested classes/interfaces inherited from interface LinkedDeque
LinkedDeque.PeekingIterator<E> -
Field Summary
Fields inherited from class AbstractLinkedDeque
first, last -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanboolean@Nullable ERetrieves the next element or null if either the element is unlinked or the last element on the deque.@Nullable EgetPrevious(E e) Retrieves the previous element or null if either the element is unlinked or the first element on the deque.booleanbooleanvoidSets the next element or null if there is no link.voidsetPrevious(E e, @Nullable E prev) Sets the previous element or null if there is no link.Methods inherited from class AbstractLinkedDeque
add, addFirst, addLast, checkNotEmpty, clear, descendingIterator, element, getFirst, getLast, isEmpty, isFirst, isLast, iterator, linkFirst, linkLast, moveToBack, moveToFront, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, removeAll, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size, unlink, unlinkFirst, unlinkLastMethods inherited from class AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Collection
containsAll, equals, hashCode, parallelStream, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
Constructor Details
-
WriteOrderDeque
WriteOrderDeque()
-
-
Method Details
-
contains
- Specified by:
containsin interfaceCollection<E extends WriteOrderDeque.WriteOrder<E>>- Specified by:
containsin interfaceDeque<E extends WriteOrderDeque.WriteOrder<E>>- Specified by:
containsin classAbstractLinkedDeque<E extends WriteOrderDeque.WriteOrder<E>>
-
contains
-
remove
- Specified by:
removein interfaceCollection<E extends WriteOrderDeque.WriteOrder<E>>- Specified by:
removein interfaceDeque<E extends WriteOrderDeque.WriteOrder<E>>- Overrides:
removein classAbstractCollection<E extends WriteOrderDeque.WriteOrder<E>>
-
remove
-
getPrevious
Description copied from interface:LinkedDequeRetrieves the previous element or null if either the element is unlinked or the first element on the deque. -
setPrevious
Description copied from interface:LinkedDequeSets the previous element or null if there is no link. -
getNext
Description copied from interface:LinkedDequeRetrieves the next element or null if either the element is unlinked or the last element on the deque. -
setNext
Description copied from interface:LinkedDequeSets the next element or null if there is no link.
-