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 booleanadd(E elem)booleanaddAll(java.util.Collection<? extends E> coll)voidaddFirst(E elem)voidaddLast(E elem)voidclear()booleancontains(java.lang.Object elem)booleancontainsAll(java.util.Collection<?> coll)java.util.Iterator<E>descendingIterator()Eelement()EgetFirst()EgetLast()booleanisEmpty()java.util.Iterator<E>iterator()booleanoffer(E elem)booleanofferFirst(E elem)booleanofferLast(E elem)Epeek()EpeekFirst()EpeekLast()Epoll()EpollFirst()EpollLast()Epop()voidpush(E elem)Eremove()booleanremove(java.lang.Object elem)booleanremoveAll(java.util.Collection<?> coll)EremoveFirst()booleanremoveFirstOccurrence(java.lang.Object elem)EremoveLast()booleanremoveLastOccurrence(java.lang.Object elem)booleanretainAll(java.util.Collection<?> coll)intsize()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:
isEmptyin interfacejava.util.Collection<E>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<E>
-
toArray
public <T> T[] toArray(T[] array)
- Specified by:
toArrayin interfacejava.util.Collection<E>
-
containsAll
public boolean containsAll(java.util.Collection<?> coll)
- Specified by:
containsAllin interfacejava.util.Collection<E>
-
addAll
public boolean addAll(java.util.Collection<? extends E> coll)
-
removeAll
public boolean removeAll(java.util.Collection<?> coll)
- Specified by:
removeAllin interfacejava.util.Collection<E>
-
retainAll
public boolean retainAll(java.util.Collection<?> coll)
- Specified by:
retainAllin interfacejava.util.Collection<E>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<E>
-
offerFirst
public boolean offerFirst(E elem)
- Specified by:
offerFirstin interfacejava.util.Deque<E>
-
removeFirstOccurrence
public boolean removeFirstOccurrence(java.lang.Object elem)
- Specified by:
removeFirstOccurrencein interfacejava.util.Deque<E>
-
removeLastOccurrence
public boolean removeLastOccurrence(java.lang.Object elem)
- Specified by:
removeLastOccurrencein 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()
-
-