public abstract class AbstractLazyPersistentCollection<T,C extends org.pcollections.PCollection<T>> extends java.lang.Object implements LazyFluentCollection<T,C>, PersistentCollectionX<T>
Fn1.µ, Fn1.FunctionalOperations<T1,R>
Modifier and Type | Field and Description |
---|---|
protected C |
list |
protected java.util.concurrent.atomic.AtomicReference<ReactiveSeq<T>> |
seq |
Constructor and Description |
---|
AbstractLazyPersistentCollection(C list,
ReactiveSeq<T> seq,
Reducer<C> collector) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T t) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
boolean |
equals(java.lang.Object o) |
C |
get() |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
java.util.stream.Stream<T> |
parallelStream() |
FluentCollectionX<T> |
plusLoop(int max,
java.util.function.IntFunction<T> value) |
FluentCollectionX<T> |
plusLoop(java.util.function.Supplier<java.util.Optional<T>> supplier) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
boolean |
removeIf(java.util.function.Predicate<? super T> filter) |
boolean |
retainAll(java.util.Collection<?> c) |
int |
size() |
java.util.Spliterator<T> |
spliterator() |
ReactiveSeq<T> |
stream() |
java.lang.Object[] |
toArray() |
<T1> T1[] |
toArray(T1[] a) |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
append, append, cast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, deleteBetween, distinct, dropRight, dropUntil, dropWhile, emptyUnit, filter, filterNot, flatMap, flatMapP, flatMapS, from, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, insertAt, insertAtS, intersperse, limit, limitLast, limitUntil, limitWhile, map, monoid, notNull, ofType, onEmpty, onEmptyGet, onEmptyThrow, permutations, plusInOrder, prepend, prepend, prependS, removeAllS, removeAllS, removeAllS, retainAllS, retainAllS, retainAllS, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, takeRight, takeUntil, takeWhile, trampoline, unit, zip, zip, zip3, zip4, zipS, zipS, zipWithIndex
minus, minusAll, plus, plusAll
drop, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromCollection, getAtIndex, groupBy, head, headAndTail, materialize, peek, single, single, singleOptional, take, unit
apply, foldFuture, foldLazy, foldTry, forEach, forEach, forEach, forEach, forEach, runFuture, runLazy, seq, subscribe, subscribe, subscribe, visit
andThen, andThen, bind, compose, functionOps, lift, lift, liftF, liftOpt, liftTry, memoize, memoize, product, reader, λ, λv
apply, applyPartially, applyPartially, curry, curry, from, toFunction
allMatch, anyMatch, avg, avgDouble, avgInt, avgLong, bitAnd, bitAndInt, bitAndLong, bitOr, bitOrInt, bitOrLong, collect, collectable, commonPrefix, commonSuffix, count, 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, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toMap, toSet, toSet, toString, toString
endsWith, endsWithIterable, firstValue, foldLeft, foldLeft, foldLeft, foldLeft, foldRight, foldRight, foldRight, foldRightMapToType, get, join, join, join, mapReduce, mapReduce, print, print, printErr, printOut, reduce, reduce, reduce, reduce, reduce, reduce, reduce, schedule, scheduleFixedDelay, scheduleFixedRate, startsWith, startsWithIterable, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, xMatch
toDequeX, toFutureStream, toFutureStream, toListX, toMapX, toOptional, toPBagX, toPMapX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toStreamable, toValue
mapToDouble, mapToInt, mapToLong, recover, recover, subscribe, traversable, unitIterator
zip, zip3, zip4, zipP, zipP, zipWith, zipWithP, zipWithS
futureStream, getStreamable, jdkStream, reactiveSeq, reveresedJDKStream, reveresedStream
retry, retry
groupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingT
fixedDelay, onePer, xPer
protected final java.util.concurrent.atomic.AtomicReference<ReactiveSeq<T>> seq
public AbstractLazyPersistentCollection(C list, ReactiveSeq<T> seq, Reducer<C> collector)
public C get()
get
in interface LazyFluentCollection<T,C extends org.pcollections.PCollection<T>>
public java.util.Iterator<T> iterator()
iterator
in interface CollectionX<T>
iterator
in interface java.lang.Iterable<T>
iterator
in interface java.util.Collection<T>
public ReactiveSeq<T> stream()
stream
in interface CollectionX<T>
stream
in interface LazyFluentCollection<T,C extends org.pcollections.PCollection<T>>
stream
in interface PersistentCollectionX<T>
stream
in interface ExtendedTraversable<T>
stream
in interface FoldableTraversable<T>
stream
in interface Sequential<T>
stream
in interface ConvertableSequence<T>
stream
in interface ToStream<T>
stream
in interface TransformerTraversable<T>
stream
in interface Traversable<T>
stream
in interface java.util.Collection<T>
public FluentCollectionX<T> plusLoop(int max, java.util.function.IntFunction<T> value)
plusLoop
in interface FluentCollectionX<T>
public FluentCollectionX<T> plusLoop(java.util.function.Supplier<java.util.Optional<T>> supplier)
plusLoop
in interface FluentCollectionX<T>
public int size()
size
in interface java.util.Collection<T>
public boolean isEmpty()
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection<T>
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection<T>
public <T1> T1[] toArray(T1[] a)
toArray
in interface java.util.Collection<T>
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection<T>
public boolean containsAll(java.util.Collection<?> c)
containsAll
in interface java.util.Collection<T>
public boolean addAll(java.util.Collection<? extends T> c)
addAll
in interface java.util.Collection<T>
public boolean removeAll(java.util.Collection<?> c)
removeAll
in interface java.util.Collection<T>
public boolean removeIf(java.util.function.Predicate<? super T> filter)
removeIf
in interface java.util.Collection<T>
public boolean retainAll(java.util.Collection<?> c)
retainAll
in interface java.util.Collection<T>
public void clear()
clear
in interface java.util.Collection<T>
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection<T>
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection<T>
hashCode
in class java.lang.Object
public java.util.Spliterator<T> spliterator()
public java.util.stream.Stream<T> parallelStream()
parallelStream
in interface java.util.Collection<T>
public java.lang.String toString()
toString
in class java.lang.Object