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) |
<R> FluentCollectionX<R> |
unit(java.util.Collection<R> col) |
<R> CollectionX<R> |
unit(R value) |
<U> IterableFunctor<U> |
unitIterator(java.util.Iterator<U> u) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
cast, 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, 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, zip3, zip4, zipStream, zipWithIndex
plusInOrder
collectable, findAny, findFirst, forEach2, forEach2, forEach3, forEach3, fromCollection, getAtIndex, groupBy, head, headAndTail, peek, single, single, singleOptional
xMatch
fixedDelay, onePer, xPer
ap1, ap2, ap3, ap4, ap5, applicatives
flatMapPublisher, flatMapPublisher, flatMapPublisher, mergePublisher, mergePublisher
allMatch, anyMatch, avg, avg, avgDouble, avgInt, avgLong, collect, count, count, countDistinct, countDistinct, countDistinctBy, countDistinctBy, max, max, max, max, maxBy, maxBy, median, median, medianBy, medianBy, min, min, min, min, minBy, minBy, mode, noneMatch, percentile, percentile, percentileBy, percentileBy, sum, sum, sumDouble, sumInt, sumLong, toCollection, toList, toList, toMap, toSet, toSet, toString, toString
public <R> CollectionX<R> unit(R value)
public <R> FluentCollectionX<R> unit(java.util.Collection<R> col)
unit
in interface FluentCollectionX<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 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 Foldable<T>
stream
in interface IterableCollectable<T>
stream
in interface IterableFunctor<T>
stream
in interface ConvertableSequence<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>