Class IListAsDeque<E>
- java.lang.Object
-
- org.magicwerk.brownies.collections.IListAsDeque<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
,java.util.Collection<E>
,java.util.Deque<E>
,java.util.Queue<E>
public class IListAsDeque<E> extends java.lang.Object implements java.util.Deque<E>
-
-
Constructor Summary
Constructors Constructor Description IListAsDeque(IList<E> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Collection<E>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArray
in interfacejava.util.Collection<E>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArray
in interfacejava.util.Collection<E>
-
containsAll
public boolean containsAll(java.util.Collection<?> coll)
- Specified by:
containsAll
in interfacejava.util.Collection<E>
-
addAll
public boolean addAll(java.util.Collection<? extends E> coll)
-
removeAll
public boolean removeAll(java.util.Collection<?> coll)
- Specified by:
removeAll
in interfacejava.util.Collection<E>
-
retainAll
public boolean retainAll(java.util.Collection<?> coll)
- Specified by:
retainAll
in interfacejava.util.Collection<E>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Collection<E>
-
offerFirst
public boolean offerFirst(E elem)
- Specified by:
offerFirst
in interfacejava.util.Deque<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object elem)
- Specified by:
removeFirstOccurrence
in interfacejava.util.Deque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object elem)
- Specified by:
removeLastOccurrence
in interfacejava.util.Deque<E>
-
add
public boolean add(E elem)
-
offer
public boolean offer(E elem)
-
remove
public E remove()
-
poll
public E poll()
-
element
public E element()
-
peek
public E peek()
-
remove
public boolean remove(java.lang.Object elem)
-
contains
public boolean contains(java.lang.Object elem)
-
size
public int size()
-
iterator
public java.util.Iterator<E> iterator()
-
-