public class DequeXImpl<T> extends java.lang.Object implements DequeX<T>
Constructor and Description |
---|
DequeXImpl() |
DequeXImpl(java.util.Deque<T> list) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
addFirst(T e) |
void |
addLast(T e) |
void |
clear() |
<R,A> R |
collect(java.util.stream.Collector<? super T,A,R> collector) |
boolean |
contains(java.lang.Object e) |
boolean |
containsAll(java.util.Collection<?> c) |
long |
count() |
java.util.Iterator<T> |
descendingIterator() |
T |
element() |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super T> action) |
T |
getFirst() |
T |
getLast() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
boolean |
offer(T e) |
boolean |
offerFirst(T e) |
boolean |
offerLast(T e) |
java.util.stream.Stream<T> |
parallelStream() |
T |
peek() |
T |
peekFirst() |
T |
peekLast() |
T |
poll() |
T |
pollFirst() |
T |
pollLast() |
T |
pop() |
void |
push(T e) |
T |
remove() |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
T |
removeFirst() |
boolean |
removeFirstOccurrence(java.lang.Object o) |
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
T |
removeLast() |
boolean |
removeLastOccurrence(java.lang.Object o) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.Spliterator<T> |
spliterator() |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, defaultCollector, distinct, dropRight, dropUntil, dropWhile, empty, filter, filterNot, flatMap, from, fromIterable, fromIterable, fromStream, getCollector, grouped, grouped, grouped, grouped, groupedStatefullyWhile, groupedUntil, groupedUntil, groupedWhile, groupedWhile, intersperse, limit, limitLast, limitUntil, limitWhile, map, minus, minusAll, notNull, of, ofType, onEmpty, onEmptyGet, onEmptyThrow, patternMatch, peek, permutations, plus, plusAll, removeAll, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, retainAll, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, singleton, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, stream, takeRight, takeUntil, takeWhile, toDequeX, trampoline, unit, unit, unitIterator, zip, zip, zip, zip3, zip4, zipStream, zipWithIndex
plusInOrder
collectable, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, fromCollection, getAtIndex, groupBy, head, headAndTail, single, single, singleOptional
xMatch
fixedDelay, onePer, xPer
ap1, ap2, ap3, ap4, ap5, applicatives
flatMapPublisher, flatMapPublisher, flatMapPublisher, mergePublisher, mergePublisher
allMatch, anyMatch, avg, avg, avgDouble, avgInt, avgLong, count, countDistinct, countDistinct, countDistinctBy, countDistinctBy, max, max, max, max, maxBy, maxBy, median, median, medianBy, medianBy, min, min, min, min, minBy, minBy, mode, noneMatch, percentile, percentile, percentileBy, percentileBy, sum, sum, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toSet, toSet, toString, toString
public DequeXImpl(java.util.Deque<T> list)
public DequeXImpl()
public void forEach(java.util.function.Consumer<? super T> action)
forEach
in interface java.lang.Iterable<T>
action
- Iterable.forEach(java.util.function.Consumer)
public java.util.Iterator<T> iterator()
public int size()
public boolean contains(java.lang.Object e)
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<T>
equals
in class java.lang.Object
o
- AbstractSet.equals(java.lang.Object)
public boolean isEmpty()
isEmpty
in interface java.util.Collection<T>
AbstractCollection.isEmpty()
public int hashCode()
hashCode
in interface java.util.Collection<T>
hashCode
in class java.lang.Object
AbstractSet.hashCode()
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
AbstractCollection.toArray()
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
c
- AbstractSet.removeAll(java.util.Collection)
public <T> T[] toArray(T[] a)
toArray
in interface java.util.Collection<T>
a
- AbstractCollection.toArray(java.lang.Object[])
public boolean add(T e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
c
- AbstractCollection.containsAll(java.util.Collection)
public boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
c
- AbstractCollection.addAll(java.util.Collection)
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
c
- AbstractCollection.retainAll(java.util.Collection)
public void clear()
clear
in interface java.util.Collection<T>
AbstractCollection.clear()
public java.lang.String toString()
toString
in class java.lang.Object
AbstractCollection.toString()
public <R,A> R collect(java.util.stream.Collector<? super T,A,R> collector)
collect
in interface CyclopsCollectable<T>
collect
in interface org.jooq.lambda.Collectable<T>
public long count()
count
in interface CyclopsCollectable<T>
count
in interface org.jooq.lambda.Collectable<T>
public boolean removeIf(java.util.function.Predicate<? super T> filter)
removeIf
in interface java.util.Collection<T>
filter
- Collection.removeIf(java.util.function.Predicate)
public java.util.stream.Stream<T> parallelStream()
parallelStream
in interface java.util.Collection<T>
Collection.parallelStream()
public java.util.Spliterator<T> spliterator()
public void addFirst(T e)
addFirst
in interface java.util.Deque<T>
e
- Deque.addFirst(java.lang.Object)
public void addLast(T e)
addLast
in interface java.util.Deque<T>
e
- Deque.addLast(java.lang.Object)
public boolean offerFirst(T e)
offerFirst
in interface java.util.Deque<T>
e
- Deque.offerFirst(java.lang.Object)
public boolean offerLast(T e)
offerLast
in interface java.util.Deque<T>
e
- Deque.offerLast(java.lang.Object)
public T removeFirst()
removeFirst
in interface java.util.Deque<T>
Deque.removeFirst()
public T removeLast()
removeLast
in interface java.util.Deque<T>
Deque.removeLast()
public T pollFirst()
pollFirst
in interface java.util.Deque<T>
Deque.pollFirst()
public T pollLast()
pollLast
in interface java.util.Deque<T>
Deque.pollLast()
public T getFirst()
getFirst
in interface java.util.Deque<T>
Deque.getFirst()
public T getLast()
getLast
in interface java.util.Deque<T>
Deque.getLast()
public T peekFirst()
peekFirst
in interface java.util.Deque<T>
Deque.peekFirst()
public T peekLast()
peekLast
in interface java.util.Deque<T>
Deque.peekLast()
public boolean removeFirstOccurrence(java.lang.Object o)
removeFirstOccurrence
in interface java.util.Deque<T>
o
- Deque.removeFirstOccurrence(java.lang.Object)
public boolean removeLastOccurrence(java.lang.Object o)
removeLastOccurrence
in interface java.util.Deque<T>
o
- Deque.removeLastOccurrence(java.lang.Object)
public boolean offer(T e)
public T remove()
public T poll()
public T element()
public T peek()
public void push(T e)
push
in interface java.util.Deque<T>
e
- Deque.push(java.lang.Object)