public class PStackXImpl<T> extends java.lang.Object implements PStackX<T>
Constructor and Description |
---|
PStackXImpl() |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element)
Deprecated.
|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c)
Deprecated.
|
boolean |
addAll(int index,
java.util.Collection<? extends T> c)
Deprecated.
|
void |
clear()
Deprecated.
|
<R,A> R |
collect(java.util.stream.Collector<? super T,A,R> collector)
Collect this collectable.
|
boolean |
contains(java.lang.Object e) |
boolean |
containsAll(java.util.Collection<?> c) |
long |
count()
Count the values in this collectable.
|
PStackX<T> |
efficientOpsOff() |
PStackX<T> |
efficientOpsOn() |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super T> action) |
T |
get(int index) |
int |
hashCode() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<T> |
listIterator() |
java.util.ListIterator<T> |
listIterator(int index) |
PStackX<T> |
minus(int i)
Remove the element at the supplied index
|
PStackX<T> |
minus(java.lang.Object e)
Remove the specified element from this collection
|
PStackX<T> |
minusAll(java.util.Collection<?> list)
Remove all the specified elements from this collection
|
java.util.stream.Stream<T> |
parallelStream() |
PStackX<T> |
plus(int i,
T e)
Add the supplied element at the supplied index
|
PStackX<T> |
plus(T e)
Add an element to this Collection
|
PStackX<T> |
plusAll(java.util.Collection<? extends T> list)
Add all supplied elements to this Collection
|
PStackX<T> |
plusAll(int i,
java.util.Collection<? extends T> list)
Add all of the supplied elements at the supplied index
|
T |
remove(int index)
Deprecated.
|
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
void |
replaceAll(java.util.function.UnaryOperator<T> operator) |
boolean |
retainAll(java.util.Collection<?> c)
Deprecated.
|
T |
set(int index,
T element)
Deprecated.
|
int |
size() |
void |
sort(java.util.Comparator<? super T> c) |
java.util.Spliterator<T> |
spliterator() |
PStackX<T> |
subList(int start) |
PStackX<T> |
subList(int start,
int end)
Create a sub sequence between the two supplied index
|
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
PStackX<T> |
with(int i,
T e)
Replace the value at the specifed index with the supplied value
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, distinct, dropRight, dropUntil, dropWhile, empty, emptyUnit, filter, filterNot, flatMap, from, fromCollection, fromIterable, fromPublisher, fromStream, generate, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, intersperse, isEfficientOps, iterate, limit, limitLast, limitUntil, limitWhile, map, monoid, narrow, notNull, of, ofType, onEmpty, onEmptyGet, onEmptySwitch, onEmptyThrow, patternMatch, permutations, plusInOrder, range, rangeLong, 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, toPStack, toPStackX, trampoline, unfold, unit, unit, unitIterator, zip, zip, zip, zip, zip, zip, zip3, zip4, zipWithIndex
collectable, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, getAtIndex, groupBy, head, headAndTail, peek, single, single, singleOptional
groupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingT
fixedDelay, onePer, xPer
foldable, visit
ap1, ap2, ap3, ap4, ap5, applicatives
allMatch, anyMatch, avg, avg, avgDouble, avgInt, avgLong, bitAnd, bitAnd, bitAndInt, bitAndLong, bitOr, bitOr, bitOrInt, bitOrLong, commonPrefix, commonSuffix, count, countDistinct, countDistinct, countDistinctBy, countDistinctBy, max, max, max, max, maxAll, maxAll, maxAll, maxAll, maxAllBy, maxAllBy, maxBy, maxBy, median, median, medianBy, medianBy, min, min, min, min, minAll, minAll, minAll, minAll, minAllBy, minAllBy, minBy, minBy, mode, modeAll, modeAllBy, modeBy, noneMatch, percentile, percentile, percentileBy, percentileBy, sum, sum, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toMap, toSet, toSet, toString, toString
public PStackX<T> efficientOpsOn()
efficientOpsOn
in interface PStackX<T>
public PStackX<T> efficientOpsOff()
efficientOpsOff
in interface PStackX<T>
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)
public PStackX<T> plus(T e)
FluentCollectionX
plus
in interface FluentCollectionX<T>
plus
in interface FluentSequenceX<T>
plus
in interface PStackX<T>
plus
in interface org.pcollections.PCollection<T>
plus
in interface org.pcollections.PSequence<T>
plus
in interface org.pcollections.PStack<T>
e
- MapPSet.plus(java.lang.Object)
public PStackX<T> minus(java.lang.Object e)
FluentCollectionX
minus
in interface FluentCollectionX<T>
minus
in interface FluentSequenceX<T>
minus
in interface PStackX<T>
minus
in interface org.pcollections.PCollection<T>
minus
in interface org.pcollections.PSequence<T>
minus
in interface org.pcollections.PStack<T>
e
- MapPSet.minus(java.lang.Object)
public PStackX<T> plusAll(java.util.Collection<? extends T> list)
FluentCollectionX
plusAll
in interface FluentCollectionX<T>
plusAll
in interface FluentSequenceX<T>
plusAll
in interface PStackX<T>
plusAll
in interface org.pcollections.PCollection<T>
plusAll
in interface org.pcollections.PSequence<T>
plusAll
in interface org.pcollections.PStack<T>
list
- MapPSet.plusAll(java.util.Collection)
public PStackX<T> minusAll(java.util.Collection<?> list)
FluentCollectionX
minusAll
in interface FluentCollectionX<T>
minusAll
in interface FluentSequenceX<T>
minusAll
in interface PStackX<T>
minusAll
in interface org.pcollections.PCollection<T>
minusAll
in interface org.pcollections.PSequence<T>
minusAll
in interface org.pcollections.PStack<T>
list
- MapPSet.minusAll(java.util.Collection)
public boolean isEmpty()
public int hashCode()
public java.lang.Object[] toArray()
public boolean removeAll(java.util.Collection<?> c)
public <T> T[] toArray(T[] a)
public boolean add(T e)
public boolean remove(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
@Deprecated public boolean addAll(java.util.Collection<? extends T> c)
@Deprecated public boolean retainAll(java.util.Collection<?> c)
@Deprecated public void 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)
org.jooq.lambda.Collectable
collect
in interface CyclopsCollectable<T>
collect
in interface org.jooq.lambda.Collectable<T>
public long count()
org.jooq.lambda.Collectable
count
in interface CyclopsCollectable<T>
count
in interface org.jooq.lambda.Collectable<T>
public PStackX<T> with(int i, T e)
FluentSequenceX
public PStackX<T> plus(int i, T e)
FluentSequenceX
public PStackX<T> plusAll(int i, java.util.Collection<? extends T> list)
FluentSequenceX
plusAll
in interface FluentSequenceX<T>
plusAll
in interface PStackX<T>
plusAll
in interface org.pcollections.PSequence<T>
plusAll
in interface org.pcollections.PStack<T>
i
- list
- PStack.plusAll(int, java.util.Collection)
public PStackX<T> minus(int i)
FluentSequenceX
public PStackX<T> subList(int start, int end)
FluentSequenceX
subList
in interface FluentSequenceX<T>
subList
in interface PStackX<T>
subList
in interface java.util.List<T>
subList
in interface org.pcollections.PSequence<T>
subList
in interface org.pcollections.PStack<T>
start
- end
- PStack.subList(int, int)
public PStackX<T> subList(int start)
subList
in interface org.pcollections.PStack<T>
start
- PStack.subList(int)
@Deprecated public boolean addAll(int index, java.util.Collection<? extends T> c)
@Deprecated public void add(int index, T element)
@Deprecated public T remove(int index)
public void replaceAll(java.util.function.UnaryOperator<T> operator)
replaceAll
in interface java.util.List<T>
operator
- List.replaceAll(java.util.function.UnaryOperator)
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 void sort(java.util.Comparator<? super T> c)
sort
in interface java.util.List<T>
c
- List.sort(java.util.Comparator)
public java.util.Spliterator<T> spliterator()
public T get(int index)
get
in interface java.util.List<T>
index
- List.get(int)
public java.util.stream.Stream<T> parallelStream()
parallelStream
in interface java.util.Collection<T>
Collection.parallelStream()
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<T>
o
- List.indexOf(java.lang.Object)
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<T>
o
- List.lastIndexOf(java.lang.Object)
public java.util.ListIterator<T> listIterator()
listIterator
in interface java.util.List<T>
List.listIterator()