public abstract class AbstractMutableBag<T> extends AbstractMutableBagIterable<T> implements MutableBag<T>
| Constructor and Description |
|---|
AbstractMutableBag() |
| Modifier and Type | Method and Description |
|---|---|
ParallelUnsortedBag<T> |
asParallel(ExecutorService executorService,
int batchSize) |
SynchronizedBag<T> |
asSynchronized() |
UnmodifiableBag<T> |
asUnmodifiable() |
<V> MutableBag<V> |
collect(Function<? super T,? extends V> function) |
<V> MutableBag<V> |
collectIf(Predicate<? super T> predicate,
Function<? super T,? extends V> function) |
<P,V> MutableBag<V> |
collectWith(Function2<? super T,? super P,? extends V> function,
P parameter) |
<V> MutableBag<V> |
collectWithOccurrences(ObjectIntToObjectFunction<? super T,? extends V> function) |
<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) |
<V> MutableBag<V> |
flatCollect(Function<? super T,? extends Iterable<V>> function) |
PartitionMutableBag<T> |
partition(Predicate<? super T> predicate) |
<P> PartitionMutableBag<T> |
partitionWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableBag<T> |
reject(Predicate<? super T> predicate) |
<P> MutableBag<T> |
rejectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableBag<T> |
select(Predicate<? super T> predicate) |
<S> MutableBag<S> |
selectInstancesOf(Class<S> clazz) |
<P> MutableBag<T> |
selectWith(Predicate2<? super T,? super P> predicate,
P parameter) |
MutableBag<T> |
tap(Procedure<? super T> procedure) |
ImmutableBag<T> |
toImmutable() |
<S> MutableBag<Pair<T,S>> |
zip(Iterable<S> that)
Deprecated.
in 6.0. Use
OrderedIterable.zip(Iterable) instead. |
MutableSet<Pair<T,Integer>> |
zipWithIndex()
Deprecated.
in 6.0. Use
OrderedIterable.zipWithIndex() instead. |
addAll, addAllIterable, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, bottomOccurrences, chunk, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, getFirst, getLast, groupByUniqueKey, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, removeAll, retainAll, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, topOccurrencescollect, 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, waitcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollectWith, groupBy, groupByEach, newEmpty, selectByOccurrences, selectDuplicates, selectUnique, toImmutableBag, toMapOfItemToCount, with, withAll, without, withoutAlladdOccurrences, bottomOccurrences, removeOccurrences, setOccurrences, topOccurrencesaggregateBy, allSatisfyWithOccurrences, anySatisfyWithOccurrences, collectWithOccurrences, detectWithOccurrences, distinctView, equals, forEachWithOccurrences, hashCode, noneSatisfyWithOccurrences, occurrencesOf, reduceInPlace, reduceInPlace, sizeDistinct, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toStringOfItemToCountaddAllIterable, aggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, removeAllIterable, removeIf, removeIfWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongadd, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, remove, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArrayallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, 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, reduce, reject, rejectWith, select, selectWith, size, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toBiMap, 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 ImmutableBag<T> toImmutable()
toImmutable in interface Bag<T>toImmutable in interface MutableBag<T>toImmutable in interface MutableCollection<T>public UnmodifiableBag<T> asUnmodifiable()
asUnmodifiable in interface MutableBag<T>asUnmodifiable in interface MutableCollection<T>public SynchronizedBag<T> asSynchronized()
asSynchronized in interface MutableBag<T>asSynchronized in interface MutableCollection<T>public MutableBag<T> tap(Procedure<? super T> procedure)
tap in interface Bag<T>tap in interface MutableBag<T>tap in interface MutableBagIterable<T>tap in interface UnsortedBag<T>tap in interface MutableCollection<T>tap in interface RichIterable<T>public <S> MutableBag<S> selectInstancesOf(Class<S> clazz)
selectInstancesOf in interface Bag<T>selectInstancesOf in interface MutableBag<T>selectInstancesOf in interface MutableBagIterable<T>selectInstancesOf in interface UnsortedBag<T>selectInstancesOf in interface MutableCollection<T>selectInstancesOf in interface RichIterable<T>public MutableBag<T> select(Predicate<? super T> predicate)
select in interface Bag<T>select in interface MutableBag<T>select in interface MutableBagIterable<T>select in interface UnsortedBag<T>select in interface MutableCollection<T>select in interface RichIterable<T>public <P> MutableBag<T> selectWith(Predicate2<? super T,? super P> predicate, P parameter)
selectWith in interface Bag<T>selectWith in interface MutableBag<T>selectWith in interface MutableBagIterable<T>selectWith in interface UnsortedBag<T>selectWith in interface MutableCollection<T>selectWith in interface RichIterable<T>public MutableBag<T> reject(Predicate<? super T> predicate)
reject in interface Bag<T>reject in interface MutableBag<T>reject in interface MutableBagIterable<T>reject in interface UnsortedBag<T>reject in interface MutableCollection<T>reject in interface RichIterable<T>public <P> MutableBag<T> rejectWith(Predicate2<? super T,? super P> predicate, P parameter)
rejectWith in interface Bag<T>rejectWith in interface MutableBag<T>rejectWith in interface MutableBagIterable<T>rejectWith in interface UnsortedBag<T>rejectWith in interface MutableCollection<T>rejectWith in interface RichIterable<T>public PartitionMutableBag<T> partition(Predicate<? super T> predicate)
partition in interface Bag<T>partition in interface MutableBag<T>partition in interface MutableBagIterable<T>partition in interface UnsortedBag<T>partition in interface MutableCollection<T>partition in interface RichIterable<T>public <P> PartitionMutableBag<T> partitionWith(Predicate2<? super T,? super P> predicate, P parameter)
partitionWith in interface Bag<T>partitionWith in interface MutableBag<T>partitionWith in interface MutableBagIterable<T>partitionWith in interface MutableCollection<T>partitionWith in interface RichIterable<T>public <V> MutableBag<V> countBy(Function<? super T,? extends V> function)
countBy in interface MutableBag<T>countBy in interface MutableCollection<T>countBy in interface RichIterable<T>countBy in class AbstractMutableBagIterable<T>public <V,P> MutableBag<V> countByWith(Function2<? super T,? super P,? extends V> function, P parameter)
countByWith in interface MutableBag<T>countByWith in interface MutableCollection<T>countByWith in interface RichIterable<T>countByWith in class AbstractMutableBagIterable<T>public <V> MutableBag<V> countByEach(Function<? super T,? extends Iterable<V>> function)
countByEach in interface MutableBag<T>countByEach in interface MutableCollection<T>countByEach in interface RichIterable<T>countByEach in class AbstractMutableBagIterable<T>public <V> MutableBag<V> collectWithOccurrences(ObjectIntToObjectFunction<? super T,? extends V> function)
collectWithOccurrences in interface Bag<T>collectWithOccurrences in interface MutableBag<T>collectWithOccurrences in interface MutableBagIterable<T>collectWithOccurrences in interface UnsortedBag<T>public <V> MutableBag<V> collect(Function<? super T,? extends V> function)
collect in interface MutableBag<T>collect in interface UnsortedBag<T>collect in interface MutableCollection<T>collect in interface RichIterable<T>public <P,V> MutableBag<V> collectWith(Function2<? super T,? super P,? extends V> function, P parameter)
collectWith in interface MutableBag<T>collectWith in interface UnsortedBag<T>collectWith in interface MutableCollection<T>collectWith in interface RichIterable<T>public <V> MutableBag<V> collectIf(Predicate<? super T> predicate, Function<? super T,? extends V> function)
collectIf in interface MutableBag<T>collectIf in interface UnsortedBag<T>collectIf in interface MutableCollection<T>collectIf in interface RichIterable<T>public <V> MutableBag<V> flatCollect(Function<? super T,? extends Iterable<V>> function)
flatCollect in interface MutableBag<T>flatCollect in interface UnsortedBag<T>flatCollect in interface MutableCollection<T>flatCollect in interface RichIterable<T>@Deprecated public <S> MutableBag<Pair<T,S>> zip(Iterable<S> that)
OrderedIterable.zip(Iterable) instead.zip in interface MutableBag<T>zip in interface UnsortedBag<T>zip in interface MutableCollection<T>zip in interface RichIterable<T>@Deprecated public MutableSet<Pair<T,Integer>> zipWithIndex()
OrderedIterable.zipWithIndex() instead.zipWithIndex in interface Bag<T>zipWithIndex in interface MutableBag<T>zipWithIndex in interface MutableBagIterable<T>zipWithIndex in interface UnsortedBag<T>zipWithIndex in interface MutableCollection<T>zipWithIndex in interface RichIterable<T>public ParallelUnsortedBag<T> asParallel(ExecutorService executorService, int batchSize)
Copyright © 2004–2022. All rights reserved.