Class IListAsDeque<E>
java.lang.Object
org.magicwerk.brownies.collections.IListAsDeque<E>
- All Implemented Interfaces:
Iterable<E>,Collection<E>,Deque<E>,Queue<E>,SequencedCollection<E>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> coll) voidvoidvoidclear()booleanbooleancontainsAll(Collection<?> coll) element()getFirst()getLast()booleanisEmpty()iterator()booleanbooleanofferFirst(E elem) booleanpeek()peekLast()poll()pollLast()pop()voidremove()booleanbooleanremoveAll(Collection<?> coll) booleanremoveFirstOccurrence(Object elem) booleanremoveLastOccurrence(Object elem) booleanretainAll(Collection<?> coll) intsize()Object[]toArray()<T> T[]toArray(T[] array) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Field Details
-
list
-
-
Constructor Details
-
IListAsDeque
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArrayin interfaceCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
addAll
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirstin interfaceDeque<E>
-
offerLast
-
removeFirst
- Specified by:
removeFirstin interfaceDeque<E>- Specified by:
removeFirstin interfaceSequencedCollection<E>
-
removeLast
- Specified by:
removeLastin interfaceDeque<E>- Specified by:
removeLastin interfaceSequencedCollection<E>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrencein interfaceDeque<E>
-
removeLastOccurrence
- Specified by:
removeLastOccurrencein interfaceDeque<E>
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
remove
-
contains
-
size
public int size() -
iterator
-
descendingIterator
- Specified by:
descendingIteratorin interfaceDeque<E>
-