public class IListAsDeque<E>
extends java.lang.Object
implements java.util.Deque<E>
Constructor and Description |
---|
IListAsDeque(IList<E> list) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E elem) |
boolean |
addAll(java.util.Collection<? extends E> coll) |
void |
addFirst(E elem) |
void |
addLast(E elem) |
void |
clear() |
boolean |
contains(java.lang.Object elem) |
boolean |
containsAll(java.util.Collection<?> coll) |
java.util.Iterator<E> |
descendingIterator() |
E |
element() |
E |
getFirst() |
E |
getLast() |
boolean |
isEmpty() |
java.util.Iterator<E> |
iterator() |
boolean |
offer(E elem) |
boolean |
offerFirst(E elem) |
boolean |
offerLast(E elem) |
E |
peek() |
E |
peekFirst() |
E |
peekLast() |
E |
poll() |
E |
pollFirst() |
E |
pollLast() |
E |
pop() |
void |
push(E elem) |
E |
remove() |
boolean |
remove(java.lang.Object elem) |
boolean |
removeAll(java.util.Collection<?> coll) |
E |
removeFirst() |
boolean |
removeFirstOccurrence(java.lang.Object elem) |
E |
removeLast() |
boolean |
removeLastOccurrence(java.lang.Object elem) |
boolean |
retainAll(java.util.Collection<?> coll) |
int |
size() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] array) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean isEmpty()
isEmpty
in interface java.util.Collection<E>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<E>
public <T> T[] toArray(T[] array)
toArray
in interface java.util.Collection<E>
public boolean containsAll(java.util.Collection<?> coll)
containsAll
in interface java.util.Collection<E>
public boolean addAll(java.util.Collection<? extends E> coll)
addAll
in interface java.util.Collection<E>
public boolean removeAll(java.util.Collection<?> coll)
removeAll
in interface java.util.Collection<E>
public boolean retainAll(java.util.Collection<?> coll)
retainAll
in interface java.util.Collection<E>
public void clear()
clear
in interface java.util.Collection<E>
public boolean offerFirst(E elem)
offerFirst
in interface java.util.Deque<E>
public boolean removeFirstOccurrence(java.lang.Object elem)
removeFirstOccurrence
in interface java.util.Deque<E>
public boolean removeLastOccurrence(java.lang.Object elem)
removeLastOccurrence
in interface java.util.Deque<E>
public boolean add(E elem)
public boolean offer(E elem)
public E remove()
public E poll()
public E element()
public E peek()
public boolean remove(java.lang.Object elem)
public boolean contains(java.lang.Object elem)
public int size()
public java.util.Iterator<E> iterator()