public class CollectionXImpl<T> extends java.lang.Object implements LazyCollectionX<T>
| Constructor and Description |
|---|
CollectionXImpl() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T e) |
boolean |
addAll(java.util.Collection<? extends T> c) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> c) |
CollectionX<T> |
eager() |
boolean |
equals(java.lang.Object o) |
Evaluation |
evaluation() |
void |
forEach(java.util.function.Consumer<? super T> action) |
<T1> CollectionX<T1> |
from(java.util.Collection<T1> c)
Conctruct an Extended Collection from a standard Collection
|
<X> LazyCollectionX<X> |
fromStream(ReactiveSeq<X> stream) |
int |
hashCode() |
boolean |
isEager() |
boolean |
isEmpty() |
boolean |
isLazy() |
boolean |
isMaterialized() |
java.util.Iterator<T> |
iterator() |
CollectionX<T> |
lazy() |
java.util.stream.Stream<T> |
parallelStream() |
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() |
<T> T[] |
toArray(T[] a) |
java.lang.String |
toString() |
<R> FluentCollectionX<R> |
unit(java.util.Collection<R> col)
Create a new instance of the same colleciton type from the supplied toX
|
<R> CollectionX<R> |
unit(R value) |
<U> CollectionX<U> |
unitIterator(java.util.Iterator<U> u)
Create an IterableFunctor instance of the same type from an Iterator
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitappend, append, cast, combinations, combinations, combine, combine, cycle, cycle, cycleUntil, cycleWhile, deleteBetween, distinct, dropRight, dropUntil, dropWhile, filter, filterNot, flatMap, flatMapP, flatMapP, flatMapS, grouped, grouped, grouped, grouped, groupedStatefullyUntil, groupedUntil, groupedUntil, groupedWhile, groupedWhile, insertAt, insertAtS, intersperse, limit, limitLast, limitUntil, limitWhile, map, minus, minusAll, notNull, ofType, onEmpty, onEmptyGet, onEmptyThrow, permutations, plus, plusAll, prepend, prepend, prependS, recover, recover, reduce, removeAll, removeAllI, removeAllS, retainAll, retainAllI, retainAllS, retry, retry, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, takeRight, takeUntil, takeWhile, trampoline, zip, zip, zip, zip3, zip3, zip4, zip4, zipP, zipP, zipS, zipS, zipWith, zipWithIndex, zipWithP, zipWithSplusInOrder, plusLoop, plusLoopdrop, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, forEach4, forEach4, fromCollection, getAtIndex, groupBy, head, headAndTail, materialize, materializeReversed, peek, single, single, singleUnsafe, take, takeOne, toXasFunction, foldFuture, foldLazy, foldTry, forEach, forEach, forEach, forEach, forEach, forEachSubscribe, forEachSubscribe, forEachSubscribe, runFuture, runLazy, seq, toListX, toSetX, visitallMatch, anyMatch, collect, collectors, commonPrefix, commonSuffix, count, count, countDistinct, countDistinct, countDistinctBy, countDistinctBy, max, maxBy, min, minBy, mode, noneMatch, sum, sumDouble, sumInt, sumLong, to, toList, toMap, toMap, toSet, toString, toStringendsWith, 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, schedule, scheduleFixedDelay, scheduleFixedRate, startsWith, startsWithIterable, xMatchmapToDouble, mapToInt, mapToLong, subscribe, traversablegroupedStatefullyUntilT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingTfixedDelay, onePer, xPerunwrap, unwrapIfInstance, unwrapNestedpublic <R> CollectionX<R> unit(R value)
public <R> FluentCollectionX<R> unit(java.util.Collection<R> col)
FluentCollectionXunit in interface FluentCollectionX<T>col - Collection data to populate the new toXpublic void forEach(java.util.function.Consumer<? super T> action)
forEach in interface java.lang.Iterable<T>action - Iterable.forEach(java.util.function.Consumer)public int size()
size in interface java.util.Collection<T>Collection.size()public boolean isEmpty()
isEmpty in interface CollectionX<T>isEmpty in interface java.util.Collection<T>Collection.isEmpty()public boolean contains(java.lang.Object o)
contains in interface java.util.Collection<T>o - Collection.contains(java.lang.Object)public boolean isLazy()
isLazy in interface CollectionX<T>public boolean isEager()
isEager in interface CollectionX<T>public Evaluation evaluation()
evaluation in interface CollectionX<T>public CollectionX<T> lazy()
lazy in interface CollectionX<T>public CollectionX<T> eager()
eager in interface CollectionX<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>Collection.iterator()public java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>Collection.toArray()public <T> T[] toArray(T[] a)
toArray in interface java.util.Collection<T>a - Collection.toArray(java.lang.Object[])public boolean add(T e)
add in interface java.util.Collection<T>e - Collection.add(java.lang.Object)public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<T>o - Collection.remove(java.lang.Object)public boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>c - Collection.containsAll(java.util.Collection)public boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>c - Collection.addAll(java.util.Collection)public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>c - Collection.removeAll(java.util.Collection)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 boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>c - Collection.retainAll(java.util.Collection)public void clear()
clear in interface java.util.Collection<T>Collection.clear()public boolean equals(java.lang.Object o)
equals in interface java.util.Collection<T>equals in class java.lang.Objecto - Collection.equals(java.lang.Object)public int hashCode()
hashCode in interface java.util.Collection<T>hashCode in class java.lang.ObjectCollection.hashCode()public java.util.Spliterator<T> spliterator()
public ReactiveSeq<T> stream()
stream in interface CollectionX<T>stream in interface Folds<T>stream in interface TransformerTraversable<T>stream in interface ExtendedTraversable<T>stream in interface FoldableTraversable<T>stream in interface Sequential<T>stream in interface Traversable<T>stream in interface java.util.Collection<T>Collection.stream()public boolean isMaterialized()
isMaterialized in interface CollectionX<T>public java.util.stream.Stream<T> parallelStream()
parallelStream in interface java.util.Collection<T>Collection.parallelStream()public <T1> CollectionX<T1> from(java.util.Collection<T1> c)
CollectionXfrom in interface CollectionX<T>c - Collection to extendpublic <U> CollectionX<U> unitIterator(java.util.Iterator<U> u)
Traversable
ReactiveSeq<Integer> newSeq = seq.unitIterable(myIterator);
unitIterator in interface Traversable<T>u - Iterator to create new IterableFunctor frompublic <X> LazyCollectionX<X> fromStream(ReactiveSeq<X> stream)
fromStream in interface LazyCollectionX<T>stream - Create a MultableCollectionX from a Streampublic java.lang.String toString()
toString in class java.lang.Object