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)
Conctruct an Extended Collection from a standard Collection
|
<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)
Create an IterableFunctor instance of the same type from an Iterator
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
cast, combinations, combinations, combine, cycle, cycle, cycleUntil, cycleWhile, distinct, dropRight, dropUntil, dropWhile, filter, filterNot, flatMap, grouped, grouped, grouped, grouped, groupedStatefullyUntil, 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, zipWithIndex
plusInOrder
collectable, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, fromCollection, 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
flatMapPublisher, flatMapPublisher, flatMapPublisher, mergePublisher, mergePublisher
endsWith, 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, xMatch
futureOperations, lazyOperations, subscribe, traversable
seq, 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, toXorSecondary
allMatch, 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, toString
public <R> CollectionX<R> unit(R value)
public <R> FluentCollectionX<R> unit(java.util.Collection<R> col)
FluentCollectionX
unit
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.Object
o
- Collection.equals(java.lang.Object)
public int hashCode()
hashCode
in interface java.util.Collection<T>
hashCode
in class java.lang.Object
Collection.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)
CollectionX
from
in interface CollectionX<T>
c
- Collection to extendpublic <U> IterableFunctor<U> unitIterator(java.util.Iterator<U> u)
IterableFunctor
ReactiveSeq<Integer> newSeq = seq.unitIterator(myIterator);
unitIterator
in interface IterableFunctor<T>
u
- Iterator to create new IterableFunctor frompublic <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