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 TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends E> coll) void
void
void
clear()
boolean
boolean
containsAll
(Collection<?> coll) element()
getFirst()
getLast()
boolean
isEmpty()
iterator()
boolean
boolean
offerFirst
(E elem) boolean
peek()
peekLast()
poll()
pollLast()
pop()
void
remove()
boolean
boolean
removeAll
(Collection<?> coll) boolean
removeFirstOccurrence
(Object elem) boolean
removeLastOccurrence
(Object elem) boolean
retainAll
(Collection<?> coll) int
size()
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
Methods 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:
isEmpty
in interfaceCollection<E>
-
toArray
- Specified by:
toArray
in interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] array) - Specified by:
toArray
in interfaceCollection<E>
-
containsAll
- Specified by:
containsAll
in interfaceCollection<E>
-
addAll
-
removeAll
- Specified by:
removeAll
in interfaceCollection<E>
-
retainAll
- Specified by:
retainAll
in interfaceCollection<E>
-
clear
public void clear()- Specified by:
clear
in interfaceCollection<E>
-
addFirst
-
addLast
-
offerFirst
- Specified by:
offerFirst
in interfaceDeque<E>
-
offerLast
-
removeFirst
- Specified by:
removeFirst
in interfaceDeque<E>
- Specified by:
removeFirst
in interfaceSequencedCollection<E>
-
removeLast
- Specified by:
removeLast
in interfaceDeque<E>
- Specified by:
removeLast
in interfaceSequencedCollection<E>
-
pollFirst
-
pollLast
-
getFirst
-
getLast
-
peekFirst
-
peekLast
-
removeFirstOccurrence
- Specified by:
removeFirstOccurrence
in interfaceDeque<E>
-
removeLastOccurrence
- Specified by:
removeLastOccurrence
in interfaceDeque<E>
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
push
-
pop
-
remove
-
contains
-
size
public int size() -
iterator
-
descendingIterator
- Specified by:
descendingIterator
in interfaceDeque<E>
-