public class LinkedDeque<E extends jmind.core.cache.support.Linked<E>>
extends java.util.AbstractCollection<E>
implements java.util.Deque<E>
| 构造器和说明 |
|---|
LinkedDeque() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(E e) |
void |
addFirst(E e) |
void |
addLast(E e) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
java.util.Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
java.util.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(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(java.lang.Object o) |
E |
removeLast() |
boolean |
removeLastOccurrence(java.lang.Object o) |
int |
size()
Beware that, unlike in most collections, this method is NOT a
constant-time operation.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic boolean isEmpty()
public int size()
Beware that, unlike in most collections, this method is NOT a constant-time operation.
public void clear()
public boolean contains(java.lang.Object o)
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 在接口中 java.util.Collection<E extends jmind.core.cache.support.Linked<E>>add 在接口中 java.util.Deque<E extends jmind.core.cache.support.Linked<E>>add 在接口中 java.util.Queue<E extends jmind.core.cache.support.Linked<E>>add 在类中 java.util.AbstractCollection<E extends jmind.core.cache.support.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(java.lang.Object o)
public E removeFirst()
public boolean removeFirstOccurrence(java.lang.Object o)
public E removeLast()
public boolean removeLastOccurrence(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
public void push(E e)
public java.util.Iterator<E> iterator()
iterator 在接口中 java.lang.Iterable<E extends jmind.core.cache.support.Linked<E>>iterator 在接口中 java.util.Collection<E extends jmind.core.cache.support.Linked<E>>iterator 在接口中 java.util.Deque<E extends jmind.core.cache.support.Linked<E>>iterator 在类中 java.util.AbstractCollection<E extends jmind.core.cache.support.Linked<E>>Copyright © 2018. All Rights Reserved.