public abstract class AbstractImmutableCollection<T> extends AbstractRichIterable<T> implements ImmutableCollection<T>, Collection<T>
| Constructor and Description |
|---|
AbstractImmutableCollection() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T t) |
boolean |
addAll(Collection<? extends T> collection) |
Collection<T> |
castToCollection() |
RichIterable<RichIterable<T>> |
chunk(int size) |
void |
clear() |
<V> ImmutableBag<V> |
countBy(Function<? super T,? extends V> function) |
<V> ImmutableBag<V> |
countByEach(Function<? super T,? extends Iterable<V>> function) |
<V,P> ImmutableBag<V> |
countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> ImmutableMap<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
Stream<T> |
parallelStream() |
Optional<T> |
reduce(BinaryOperator<T> accumulator) |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
Spliterator<T> |
spliterator() |
Stream<T> |
stream() |
<V> ImmutableObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> ImmutableObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> ImmutableObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, asLazy, collect, collectIf, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, count, countWith, detect, detectOptional, detectWith, detectWithIfNone, detectWithOptional, flatCollect, forEach, forEachWith, forEachWithIndex, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, into, isEmpty, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaggregateBy, aggregateInPlaceBy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, flatCollectWith, groupBy, groupByEach, newWith, newWithAll, newWithout, newWithoutAll, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, tap, zip, zipWithIndexaggregateBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, contains, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getFirst, getLast, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduceInPlace, reduceInPlace, reject, rejectWith, select, selectWith, size, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, toImmutableBag, toImmutableBiMap, toImmutableList, toImmutableMap, toImmutableSet, toImmutableSortedBag, toImmutableSortedBag, toImmutableSortedBagBy, toImmutableSortedList, toImmutableSortedList, toImmutableSortedListBy, toImmutableSortedSet, toImmutableSortedSet, toImmutableSortedSetBy, toList, toMap, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexforEach, forEachWith, forEachWithIndexpublic Optional<T> reduce(BinaryOperator<T> accumulator)
reduce in interface RichIterable<T>public <V> ImmutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface ImmutableCollection<T>sumByInt in interface RichIterable<T>public <V> ImmutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface ImmutableCollection<T>sumByFloat in interface RichIterable<T>public <V> ImmutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface ImmutableCollection<T>sumByLong in interface RichIterable<T>public <V> ImmutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface ImmutableCollection<T>sumByDouble in interface RichIterable<T>public <V> ImmutableMap<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
groupByUniqueKey in interface ImmutableCollection<T>groupByUniqueKey in interface RichIterable<T>public boolean add(T t)
add in interface Collection<T>public boolean remove(Object o)
remove in interface Collection<T>public boolean addAll(Collection<? extends T> collection)
addAll in interface Collection<T>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<T>public void clear()
clear in interface Collection<T>public RichIterable<RichIterable<T>> chunk(int size)
chunk in interface RichIterable<T>public <V> ImmutableBag<V> countBy(Function<? super T,? extends V> function)
countBy in interface ImmutableCollection<T>countBy in interface RichIterable<T>public <V,P> ImmutableBag<V> countByWith(Function2<? super T,? super P,? extends V> function, P parameter)
countByWith in interface ImmutableCollection<T>countByWith in interface RichIterable<T>public <V> ImmutableBag<V> countByEach(Function<? super T,? extends Iterable<V>> function)
countByEach in interface ImmutableCollection<T>countByEach in interface RichIterable<T>countByEach in class AbstractRichIterable<T>public Stream<T> stream()
stream in interface Collection<T>stream in interface ImmutableCollection<T>public Stream<T> parallelStream()
parallelStream in interface Collection<T>parallelStream in interface ImmutableCollection<T>public Spliterator<T> spliterator()
spliterator in interface Iterable<T>spliterator in interface Collection<T>spliterator in interface ImmutableCollection<T>public Collection<T> castToCollection()
castToCollection in interface ImmutableCollection<T>Copyright © 2004–2022. All rights reserved.