public class CollectionXImpl<T> extends java.lang.Object implements MutableCollectionX<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) |
boolean |
equals(java.lang.Object o) |
void |
forEach(java.util.function.Consumer<? super T> action) |
<T1> CollectionX<T1> |
from(java.util.Collection<T1> c) |
<X> MutableCollectionX<X> |
fromStream(java.util.stream.Stream<X> stream) |
int |
hashCode() |
boolean |
isEmpty() |
java.util.Iterator<T> |
iterator() |
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 collection
|
<R> CollectionX<R> |
unit(R value) |
<U> IterableFunctor<U> |
unitIterator(java.util.Iterator<U> u) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, distinct, dropRight, dropUntil, dropWhile, filter, filterNot, flatMap, grouped, grouped, grouped, grouped, groupedStatefullyWhile, groupedUntil, groupedUntil, groupedWhile, groupedWhile, intersperse, limit, limitLast, limitUntil, limitWhile, map, minus, minusAll, notNull, ofType, onEmpty, onEmptyGet, onEmptyThrow, patternMatch, permutations, plus, plusAll, reduce, removeAll, removeAll, removeAll, removeAll, retainAll, retainAll, retainAll, retainAll, reverse, scanLeft, scanLeft, scanRight, scanRight, shuffle, shuffle, skip, skipLast, skipUntil, skipWhile, slice, sliding, sliding, sorted, sorted, sorted, takeRight, takeUntil, takeWhile, trampoline, zip, zip, zip, zip, zip, zip, zip3, zip4, zipWithIndexplusInOrdercollectable, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, fromCollection, getAtIndex, groupBy, head, headAndTail, peek, single, single, singleOptionalgroupedStatefullyWhileT, groupedT, groupedUntilT, groupedWhileT, slidingT, slidingTfixedDelay, onePer, xPerfoldable, visitap1, ap2, ap3, ap4, ap5, applicativesflatMapPublisher, flatMapPublisher, flatMapPublisher, mergePublisher, mergePublisherendsWith, endsWithIterable, firstValue, 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, toConcurrentLazyCollection, toConcurrentLazyStreamable, toLazyCollection, validate, xMatchfutureOperations, lazyOperations, subscribe, traversableseq, toCompletableFuture, toDequeX, toEvalAlways, toEvalLater, toEvalNow, toFutureStream, toFutureStream, toFutureW, toIor, toIorSecondary, toListX, toMapX, toMaybe, toOptional, toPBagX, toPMapX, toPOrderedSetX, toPQueueX, toPSetX, toPStackX, toPVectorX, toQueueX, toSetX, toSimpleReact, toSimpleReact, toSortedSetX, toStreamable, toTry, toValue, toValueMap, toValueSet, toXor, toXorSecondaryallMatch, anyMatch, avg, avg, avgDouble, avgInt, avgLong, bitAnd, bitAnd, bitAndInt, bitAndLong, bitOr, bitOr, bitOrInt, bitOrLong, collect, 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, sum, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toMap, toSet, toSet, toString, toStringpublic <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 collectionpublic 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 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 java.util.Iterator<T> 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 ExtendedTraversable<T>stream in interface Foldable<T>stream in interface IterableFunctor<T>stream in interface Sequential<T>stream in interface ConvertableSequence<T>stream in interface TransformerTraversable<T>stream in interface Traversable<T>stream in interface java.util.Collection<T>Collection.stream()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)
from in interface CollectionX<T>public <U> IterableFunctor<U> unitIterator(java.util.Iterator<U> u)
unitIterator in interface IterableFunctor<T>public <X> MutableCollectionX<X> fromStream(java.util.stream.Stream<X> stream)
fromStream in interface MutableCollectionX<T>stream - Create a MultableCollectionX from a Streampublic java.lang.String toString()
toString in class java.lang.Object