public abstract class AbstractHashBag<T> extends AbstractMutableBag<T>
| Constructor and Description |
|---|
AbstractHashBag() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T item) |
int |
addOccurrences(T item,
int occurrences) |
boolean |
allSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate) |
boolean |
anySatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate) |
void |
clear() |
boolean |
contains(Object o) |
T |
detectWithOccurrences(ObjectIntPredicate<? super T> predicate) |
RichIterable<T> |
distinctView() |
void |
each(Procedure<? super T> procedure) |
boolean |
equals(Object other) |
<P> void |
forEachWith(Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithOccurrences(ObjectIntProcedure<? super T> objectIntProcedure) |
<V> HashBagMultimap<V,T> |
groupBy(Function<? super T,? extends V> function) |
<V> HashBagMultimap<V,T> |
groupByEach(Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
boolean |
noneSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate) |
int |
occurrencesOf(Object item) |
boolean |
remove(Object item) |
boolean |
removeAllIterable(Iterable<?> iterable) |
boolean |
removeIf(Predicate<? super T> predicate) |
<P> boolean |
removeIfWith(Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
removeOccurrences(Object item,
int occurrences) |
boolean |
setOccurrences(T item,
int occurrences) |
int |
size() |
int |
sizeDistinct() |
MutableMap<T,Integer> |
toMapOfItemToCount() |
asParallel, asSynchronized, asUnmodifiable, collect, collectIf, collectWith, collectWithOccurrences, countBy, countByEach, countByWith, flatCollect, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, tap, toImmutable, zip, zipWithIndexaddAll, 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, containsAll, containsAllArguments, containsAllIterable, countWith, forEach, groupByUniqueKey, into, toArray, toArray, toBiMap, toMap, toSortedBagBy, toSortedListBy, toSortedMap, toSortedMap, toSortedMapBy, toSortedSetBy, toString, zip, zipWithIndexcollectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, flatCollectWith, newEmpty, selectByOccurrences, selectDuplicates, selectUnique, toImmutableBag, with, withAll, without, withoutAllbottomOccurrences, topOccurrencesaggregateBy, collectWithOccurrences, reduceInPlace, reduceInPlace, summarizeDouble, summarizeFloat, summarizeInt, summarizeLong, toStringOfItemToCountaddAllIterable, aggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, retainAllIterable, selectAndRejectWith, sumByDouble, sumByFloat, sumByInt, sumByLongaddAll, containsAll, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArrayallSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, appendString, appendString, appendString, asLazy, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, containsAll, containsAllArguments, containsAllIterable, containsAny, containsAnyIterable, containsBy, containsNone, containsNoneIterable, count, countBy, countByEach, countByWith, countWith, detect, detectIfNone, detectOptional, detectWith, detectWithIfNone, detectWithOptional, 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, makeString, makeString, makeString, makeString, max, max, maxBy, maxByOptional, maxOptional, maxOptional, min, min, minBy, minByOptional, minOptional, minOptional, noneSatisfy, noneSatisfyWith, notEmpty, reduce, reject, rejectWith, select, selectWith, 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, zipWithIndexforEachpublic int addOccurrences(T item, int occurrences)
public boolean equals(Object other)
public int hashCode()
public int sizeDistinct()
public int occurrencesOf(Object item)
public void forEachWithOccurrences(ObjectIntProcedure<? super T> objectIntProcedure)
public boolean anySatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
public boolean allSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
public boolean noneSatisfyWithOccurrences(ObjectIntPredicate<? super T> predicate)
public T detectWithOccurrences(ObjectIntPredicate<? super T> predicate)
public MutableMap<T,Integer> toMapOfItemToCount()
public boolean add(T item)
public boolean remove(Object item)
public void clear()
public boolean isEmpty()
isEmpty in interface Collection<T>isEmpty in interface RichIterable<T>isEmpty in class AbstractRichIterable<T>public void forEachWithIndex(ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public <P> void forEachWith(Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface InternalIterable<T>forEachWith in class AbstractRichIterable<T>public boolean removeOccurrences(Object item, int occurrences)
public boolean setOccurrences(T item, int occurrences)
public <P> boolean removeIfWith(Predicate2<? super T,? super P> predicate, P parameter)
public boolean removeAllIterable(Iterable<?> iterable)
public int size()
public boolean contains(Object o)
contains in interface Collection<T>contains in interface RichIterable<T>contains in class AbstractRichIterable<T>public <V> HashBagMultimap<V,T> groupBy(Function<? super T,? extends V> function)
public <V> HashBagMultimap<V,T> groupByEach(Function<? super T,? extends Iterable<V>> function)
public RichIterable<T> distinctView()
Copyright © 2004–2022. All rights reserved.