E - the type of elements held in this collectionpublic static final class ConcurrentLinkedHashMap.LinkedDeque<E extends ConcurrentLinkedHashMap.Linked<E>> extends AbstractCollection<E>
Most LinkedDeque operations run in constant time by assuming that
the ConcurrentLinkedHashMap.Linked parameter is associated with the deque instance. Any usage
that violates this assumption will result in non-deterministic behavior.
The iterators returned by this class are not fail-fast: If the deque is modified at any time after the iterator is created, the iterator will be in an unknown state. Thus, in the face of concurrent modification, the iterator risks arbitrary, non-deterministic behavior at an undetermined time in the future.
| 构造器和说明 |
|---|
LinkedDeque() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
boolean |
contains(Object o) |
Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
Iterator<E> |
iterator() |
void |
moveToBack(E e)
Moves the element to the back of the deque so that it becomes the last
element.
|
void |
moveToFront(E e)
Moves the element to the front of the deque so that it becomes the first
element.
|
boolean |
offer(E e) |
boolean |
offerFirst(E e) |
boolean |
offerLast(E e) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E e) |
E |
remove() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(Object o) |
int |
size() |
addAll, containsAll, retainAll, toArray, toArray, toStringequals, hashCode, parallelStream, removeIf, spliterator, streampublic boolean isEmpty()
isEmpty 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>isEmpty 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public int size()
size 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>size 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public void clear()
clear 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>clear 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public boolean contains(Object o)
contains 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>contains 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public void moveToFront(E e)
e - the linked elementpublic void moveToBack(E e)
e - the linked elementpublic E peek()
public E peekFirst()
public E peekLast()
public E getFirst()
public E getLast()
public E element()
public boolean offer(E e)
public boolean offerFirst(E e)
public boolean offerLast(E e)
public boolean add(E e)
add 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>add 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public void addFirst(E e)
public void addLast(E e)
public E poll()
public E pollFirst()
public E pollLast()
public E remove()
public boolean remove(Object o)
remove 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>remove 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public E removeFirst()
public boolean removeFirstOccurrence(Object o)
public E removeLast()
public boolean removeLastOccurrence(Object o)
public boolean removeAll(Collection<?> c)
removeAll 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>removeAll 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>public void push(E e)
public E pop()
public Iterator<E> iterator()
iterator 在接口中 Iterable<E extends ConcurrentLinkedHashMap.Linked<E>>iterator 在接口中 Collection<E extends ConcurrentLinkedHashMap.Linked<E>>iterator 在类中 AbstractCollection<E extends ConcurrentLinkedHashMap.Linked<E>>Copyright © 2021. All rights reserved.