public abstract class AbstractHashBag<T> extends AbstractMutableBag<T>
| Constructor and Description |
|---|
AbstractHashBag() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(T item) |
boolean |
addAll(Collection<? extends T> source) |
void |
addOccurrences(T item,
int occurrences) |
void |
clear() |
boolean |
contains(Object o) |
void |
each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure) |
boolean |
equals(Object other) |
<P> void |
forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure,
P parameter) |
void |
forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure) |
<V> HashBagMultimap<V,T> |
groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function) |
<V> HashBagMultimap<V,T> |
groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function) |
int |
hashCode() |
boolean |
isEmpty() |
Iterator<T> |
iterator() |
int |
occurrencesOf(Object item) |
boolean |
remove(Object item) |
boolean |
removeAllIterable(Iterable<?> iterable) |
boolean |
removeIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate) |
<P> boolean |
removeIfWith(org.eclipse.collections.api.block.predicate.Predicate2<? super T,? super P> predicate,
P parameter) |
boolean |
removeOccurrences(Object item,
int occurrences) |
abstract org.eclipse.collections.api.bag.MutableBag<T> |
selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
setOccurrences(T item,
int occurrences) |
int |
size() |
int |
sizeDistinct() |
org.eclipse.collections.api.map.MutableMap<T,Integer> |
toMapOfItemToCount() |
asParallel, asSynchronized, asUnmodifiable, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, flatCollect, partition, partitionWith, reject, rejectWith, select, selectInstancesOf, selectWith, tap, toImmutable, zip, zipWithIndexaddAllIterable, aggregateBy, aggregateInPlaceBy, allSatisfy, allSatisfyWith, anySatisfy, anySatisfyWith, bottomOccurrences, chunk, detect, detectIfNone, detectWith, detectWithIfNone, getFirst, getLast, groupByUniqueKey, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, removeAll, retainAll, retainAllIterable, selectAndRejectWith, topOccurrencescollect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectIf, collectInt, collectLong, collectShort, collectWith, count, flatCollect, 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, appendString, asLazy, containsAll, containsAllArguments, containsAllIterable, countWith, forEach, groupByUniqueKey, makeString, makeString, makeString, notEmpty, sumByDouble, sumByFloat, sumByInt, sumByLong, toArray, toArray, toMap, toSortedBagBy, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSetBy, toString, zip, zipWithIndexnewEmpty, with, withAll, without, withoutAllbottomOccurrences, topOccurrencesaddAllIterable, aggregateBy, aggregateInPlaceBy, groupByUniqueKey, injectIntoWith, retainAllIterable, selectAndRejectWithcontainsAll, 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, count, countWith, detect, detectIfNone, detectWith, detectWithIfNone, flatCollect, getFirst, getLast, groupBy, groupByEach, groupByUniqueKey, injectInto, injectInto, injectInto, injectInto, injectInto, makeString, makeString, makeString, max, max, maxBy, min, min, minBy, noneSatisfy, noneSatisfyWith, notEmpty, reject, rejectWith, select, selectWith, sumByDouble, sumByFloat, sumByInt, sumByLong, sumOfDouble, sumOfFloat, sumOfInt, sumOfLong, toArray, toArray, toBag, toList, toMap, toSet, toSortedBag, toSortedBag, toSortedBagBy, toSortedList, toSortedList, toSortedListBy, toSortedMap, toSortedMap, toSortedSet, toSortedSet, toSortedSetBy, toString, zip, zipWithIndexpublic boolean addAll(Collection<? extends T> source)
addAll in interface Collection<T>addAll in class AbstractMutableBagIterable<T>public void addOccurrences(T item, int occurrences)
public boolean equals(Object other)
public int hashCode()
public abstract org.eclipse.collections.api.bag.MutableBag<T> selectByOccurrences(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
public int sizeDistinct()
public int occurrencesOf(Object item)
public void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
public org.eclipse.collections.api.map.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 org.eclipse.collections.api.RichIterable<T>isEmpty in class AbstractRichIterable<T>public void each(org.eclipse.collections.api.block.procedure.Procedure<? super T> procedure)
public void forEachWithIndex(org.eclipse.collections.api.block.procedure.primitive.ObjectIntProcedure<? super T> objectIntProcedure)
forEachWithIndex in interface org.eclipse.collections.api.InternalIterable<T>forEachWithIndex in class AbstractRichIterable<T>public <P> void forEachWith(org.eclipse.collections.api.block.procedure.Procedure2<? super T,? super P> procedure, P parameter)
forEachWith in interface org.eclipse.collections.api.InternalIterable<T>forEachWith in class AbstractRichIterable<T>public boolean removeOccurrences(Object item, int occurrences)
public boolean setOccurrences(T item, int occurrences)
public boolean removeIf(org.eclipse.collections.api.block.predicate.Predicate<? super T> predicate)
public <P> boolean removeIfWith(org.eclipse.collections.api.block.predicate.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 org.eclipse.collections.api.RichIterable<T>contains in class AbstractRichIterable<T>public <V> HashBagMultimap<V,T> groupBy(org.eclipse.collections.api.block.function.Function<? super T,? extends V> function)
public <V> HashBagMultimap<V,T> groupByEach(org.eclipse.collections.api.block.function.Function<? super T,? extends Iterable<V>> function)
Copyright © 2004–2017. All rights reserved.