public abstract class AbstractMutableBagIterable<T> extends AbstractBag<T> implements MutableBagIterable<T>
| Constructor and Description |
|---|
AbstractMutableBagIterable() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addAll(Collection<? extends T> source) |
boolean |
addAllIterable(Iterable<? extends T> iterable) |
boolean |
allSatisfy(Predicate<? super T> predicate) |
<P> boolean |
allSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
anySatisfy(Predicate<? super T> predicate) |
<P> boolean |
anySatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableList<ObjectIntPair<T>> |
bottomOccurrences(int n) |
RichIterable<RichIterable<T>> |
chunk(int size) |
<V> MutableBag<V> |
countBy(Function<? super T,? extends V> function) |
<V> MutableBag<V> |
countByEach(Function<? super T,? extends Iterable<V>> function) |
<V,P> MutableBag<V> |
countByWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
T |
detect(Predicate<? super T> predicate) |
T |
detectIfNone(Predicate<? super T> predicate,
Function0<? extends T> function) |
Optional<T> |
detectOptional(Predicate<? super T> predicate) |
<P> T |
detectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<P> T |
detectWithIfNone(Predicate2<? super T,? super P> predicate,
P parameter,
Function0<? extends T> function) |
<P> Optional<T> |
detectWithOptional(Predicate2<? super T,? super P> predicate,
P parameter) |
T |
getFirst() |
T |
getLast() |
<V> MutableMap<V,T> |
groupByUniqueKey(Function<? super T,? extends V> function) |
T |
max() |
T |
max(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
maxBy(Function<? super T,? extends V> function) |
T |
min() |
T |
min(Comparator<? super T> comparator) |
<V extends Comparable<? super V>> |
minBy(Function<? super T,? extends V> function) |
boolean |
noneSatisfy(Predicate<? super T> predicate) |
<P> boolean |
noneSatisfyWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
removeAll(Collection<?> collection) |
boolean |
retainAll(Collection<?> collection) |
boolean |
retainAllIterable(Iterable<?> iterable) |
<P> Twin<MutableList<T>> |
selectAndRejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
<V> MutableObjectDoubleMap<V> |
sumByDouble(Function<? super T,? extends V> groupBy,
DoubleFunction<? super T> function) |
<V> MutableObjectDoubleMap<V> |
sumByFloat(Function<? super T,? extends V> groupBy,
FloatFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByInt(Function<? super T,? extends V> groupBy,
IntFunction<? super T> function) |
<V> MutableObjectLongMap<V> |
sumByLong(Function<? super T,? extends V> groupBy,
LongFunction<? super T> function) |
MutableList<ObjectIntPair<T>> |
topOccurrences(int n) |
collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, count, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, groupBy, groupByEach, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoWith, reject, rejectWith, select, selectWith, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toBag, toList, toSet, toSortedBag, toSortedBag, toSortedList, toSortedSet, toSortedSet, toStringOfItemToCountappendString, appendString, asLazy, contains, containsAll, containsAllArguments, containsAllIterable, countWith, forEach, forEachWith, forEachWithIndex, groupByUniqueKey, into, isEmpty, toArray, toArray, toBiMap, toMap, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSetBy, toString, zip, zipWithIndexequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddOccurrences, collectWithOccurrences, groupBy, groupByEach, partition, partitionWith, reject, rejectWith, removeOccurrences, select, selectByOccurrences, selectDuplicates, selectInstancesOf, selectUnique, selectWith, setOccurrences, tap, toMapOfItemToCount, with, withAll, without, withoutAll, zipWithIndexaggregateBy, allSatisfyWithOccurrences, anySatisfyWithOccurrences, collectWithOccurrences, detectWithOccurrences, distinctView, equals, forEachWithOccurrences, hashCode, noneSatisfyWithOccurrences, occurrencesOf, reduceInPlace, reduceInPlace, sizeDistinct, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toImmutable, toStringOfItemToCountaggregateBy, aggregateInPlaceBy, asSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, flatCollectWith, injectIntoWith, newEmpty, removeAllIterable, removeIf, removeIfWith, toImmutable, zipadd, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeIf, size, spliterator, stream, toArray, toArrayappendString, 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, each, flatCollect, flatCollectBoolean, flatCollectByte, flatCollectChar, flatCollectDouble, flatCollectFloat, flatCollectInt, flatCollectLong, flatCollectShort, flatCollectWith, forEach, getAny, getOnly, groupBy, groupByAndCollect, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, into, isEmpty, makeString, makeString, makeString, makeString, maxByOptional, maxOptional, maxOptional, minByOptional, minOptional, minOptional, notEmpty, reduce, reject, rejectWith, select, selectWith, size, 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 boolean addAll(Collection<? extends T> source)
addAll in interface Collection<T>public boolean addAllIterable(Iterable<? extends T> iterable)
addAllIterable in interface MutableCollection<T>public boolean removeAll(Collection<?> collection)
removeAll in interface Collection<T>public boolean retainAll(Collection<?> collection)
retainAll in interface Collection<T>public boolean retainAllIterable(Iterable<?> iterable)
retainAllIterable in interface MutableCollection<T>public <P> Twin<MutableList<T>> selectAndRejectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectAndRejectWith in interface MutableCollection<T>public T getFirst()
getFirst in interface RichIterable<T>public T getLast()
getLast in interface RichIterable<T>public <V> MutableMap<V,T> groupByUniqueKey(Function<? super T,? extends V> function)
groupByUniqueKey in interface MutableCollection<T>groupByUniqueKey in interface RichIterable<T>public RichIterable<RichIterable<T>> chunk(int size)
chunk in interface RichIterable<T>public T detect(Predicate<? super T> predicate)
detect in interface RichIterable<T>detect in class AbstractRichIterable<T>public <P> T detectWith(Predicate2<? super T,? super P> predicate, P parameter)
detectWith in interface RichIterable<T>detectWith in class AbstractRichIterable<T>public Optional<T> detectOptional(Predicate<? super T> predicate)
detectOptional in interface RichIterable<T>detectOptional in class AbstractRichIterable<T>public <P> Optional<T> detectWithOptional(Predicate2<? super T,? super P> predicate, P parameter)
detectWithOptional in interface RichIterable<T>detectWithOptional in class AbstractRichIterable<T>public T detectIfNone(Predicate<? super T> predicate, Function0<? extends T> function)
detectIfNone in interface RichIterable<T>public <P> T detectWithIfNone(Predicate2<? super T,? super P> predicate, P parameter, Function0<? extends T> function)
detectWithIfNone in interface RichIterable<T>detectWithIfNone in class AbstractRichIterable<T>public boolean anySatisfy(Predicate<? super T> predicate)
anySatisfy in interface RichIterable<T>anySatisfy in class AbstractRichIterable<T>public <P> boolean anySatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
anySatisfyWith in interface RichIterable<T>anySatisfyWith in class AbstractRichIterable<T>public boolean allSatisfy(Predicate<? super T> predicate)
allSatisfy in interface RichIterable<T>allSatisfy in class AbstractRichIterable<T>public <P> boolean allSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
allSatisfyWith in interface RichIterable<T>allSatisfyWith in class AbstractRichIterable<T>public boolean noneSatisfy(Predicate<? super T> predicate)
noneSatisfy in interface RichIterable<T>noneSatisfy in class AbstractRichIterable<T>public <P> boolean noneSatisfyWith(Predicate2<? super T,? super P> predicate, P parameter)
noneSatisfyWith in interface RichIterable<T>noneSatisfyWith in class AbstractRichIterable<T>public <V> MutableBag<V> countBy(Function<? super T,? extends V> function)
countBy in interface MutableCollection<T>countBy in interface RichIterable<T>public <V,P> MutableBag<V> countByWith(Function2<? super T,? super P,? extends V> function, P parameter)
countByWith in interface MutableCollection<T>countByWith in interface RichIterable<T>public <V> MutableBag<V> countByEach(Function<? super T,? extends Iterable<V>> function)
countByEach in interface MutableCollection<T>countByEach in interface RichIterable<T>countByEach in class AbstractRichIterable<T>public T min()
min in interface RichIterable<T>min in class AbstractRichIterable<T>public T min(Comparator<? super T> comparator)
min in interface RichIterable<T>min in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T minBy(Function<? super T,? extends V> function)
minBy in interface RichIterable<T>minBy in class AbstractRichIterable<T>public T max()
max in interface RichIterable<T>max in class AbstractRichIterable<T>public T max(Comparator<? super T> comparator)
max in interface RichIterable<T>max in class AbstractRichIterable<T>public <V extends Comparable<? super V>> T maxBy(Function<? super T,? extends V> function)
maxBy in interface RichIterable<T>maxBy in class AbstractRichIterable<T>public <V> MutableObjectLongMap<V> sumByInt(Function<? super T,? extends V> groupBy, IntFunction<? super T> function)
sumByInt in interface MutableCollection<T>sumByInt in interface RichIterable<T>public <V> MutableObjectDoubleMap<V> sumByFloat(Function<? super T,? extends V> groupBy, FloatFunction<? super T> function)
sumByFloat in interface MutableCollection<T>sumByFloat in interface RichIterable<T>public <V> MutableObjectLongMap<V> sumByLong(Function<? super T,? extends V> groupBy, LongFunction<? super T> function)
sumByLong in interface MutableCollection<T>sumByLong in interface RichIterable<T>public <V> MutableObjectDoubleMap<V> sumByDouble(Function<? super T,? extends V> groupBy, DoubleFunction<? super T> function)
sumByDouble in interface MutableCollection<T>sumByDouble in interface RichIterable<T>public MutableList<ObjectIntPair<T>> topOccurrences(int n)
topOccurrences in interface Bag<T>topOccurrences in interface MutableBagIterable<T>public MutableList<ObjectIntPair<T>> bottomOccurrences(int n)
bottomOccurrences in interface Bag<T>bottomOccurrences in interface MutableBagIterable<T>Copyright © 2004–2022. All rights reserved.