@NotThreadSafe public final class IntHashBag extends AbstractIntIterable implements org.eclipse.collections.api.bag.primitive.MutableIntBag, Externalizable
HashBag, and is memory-optimized for int primitives.
This file was automatically generated from template file primitiveHashBag.stg.| Constructor and Description |
|---|
IntHashBag() |
IntHashBag(int... elements) |
IntHashBag(int size) |
IntHashBag(IntHashBag bag) |
IntHashBag(org.eclipse.collections.api.IntIterable iterable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(int item) |
boolean |
addAll(int... source) |
boolean |
addAll(org.eclipse.collections.api.IntIterable source) |
void |
addOccurrences(int item,
int occurrences) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableIntBag |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function) |
boolean |
contains(int value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
boolean |
equals(Object otherBag) |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function) |
org.eclipse.collections.api.iterator.MutableIntIterator |
intIterator() |
boolean |
isEmpty() |
int |
max() |
int |
min() |
static IntHashBag |
newBag(int size) |
static IntHashBag |
newBag(org.eclipse.collections.api.bag.primitive.IntBag source) |
static IntHashBag |
newBag(org.eclipse.collections.api.IntIterable source) |
static IntHashBag |
newBagWith(int... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
notEmpty() |
int |
occurrencesOf(int item) |
void |
readExternal(ObjectInput in) |
IntHashBag |
reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
boolean |
remove(int item) |
boolean |
removeAll(int... source) |
boolean |
removeAll(org.eclipse.collections.api.IntIterable source) |
boolean |
removeOccurrences(int item,
int occurrences) |
boolean |
retainAll(int... source) |
boolean |
retainAll(org.eclipse.collections.api.IntIterable source) |
IntHashBag |
select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate) |
int |
size() |
int |
sizeDistinct() |
long |
sum() |
int[] |
toArray() |
org.eclipse.collections.api.bag.primitive.ImmutableIntBag |
toImmutable() |
IntHashBag |
with(int element) |
IntHashBag |
with(int element1,
int element2) |
IntHashBag |
with(int element1,
int element2,
int element3) |
IntHashBag |
withAll(org.eclipse.collections.api.IntIterable iterable) |
IntHashBag |
without(int element) |
IntHashBag |
withoutAll(org.eclipse.collections.api.IntIterable iterable) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic IntHashBag()
public IntHashBag(int size)
public IntHashBag(org.eclipse.collections.api.IntIterable iterable)
public IntHashBag(int... elements)
public IntHashBag(IntHashBag bag)
public static IntHashBag newBag(int size)
public static IntHashBag newBagWith(int... source)
public static IntHashBag newBag(org.eclipse.collections.api.IntIterable source)
public static IntHashBag newBag(org.eclipse.collections.api.bag.primitive.IntBag source)
public boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterableisEmpty in class AbstractIntIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablenotEmpty in class AbstractIntIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.IntBagpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic IntHashBag with(int element)
with in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwith in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic IntHashBag with(int element1, int element2)
public IntHashBag with(int element1, int element2, int element3)
public IntHashBag withAll(org.eclipse.collections.api.IntIterable iterable)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic IntHashBag without(int element)
without in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic IntHashBag withoutAll(org.eclipse.collections.api.IntIterable iterable)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableIntBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean contains(int value)
contains in interface org.eclipse.collections.api.IntIterablepublic int occurrencesOf(int item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.IntBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.IntIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.IntBagpublic boolean add(int item)
add in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean remove(int item)
remove in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(int... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean addAll(org.eclipse.collections.api.IntIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(int... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean removeAll(org.eclipse.collections.api.IntIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(org.eclipse.collections.api.IntIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic boolean retainAll(int... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic void addOccurrences(int item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableIntBagpublic boolean removeOccurrences(int item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableIntBagpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
forEach in interface org.eclipse.collections.api.IntIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.IntProcedure procedure)
each in interface org.eclipse.collections.api.IntIterablepublic IntHashBag select(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.IntBagselect in interface org.eclipse.collections.api.bag.primitive.MutableIntBagselect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionselect in interface org.eclipse.collections.api.IntIterablepublic IntHashBag reject(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.IntBagreject in interface org.eclipse.collections.api.bag.primitive.MutableIntBagreject in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionreject in interface org.eclipse.collections.api.IntIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectIntToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.IntIterablepublic boolean equals(Object otherBag)
public int hashCode()
public void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic int count(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
count in interface org.eclipse.collections.api.IntIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.IntIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.IntIterablepublic int detectIfNone(org.eclipse.collections.api.block.predicate.primitive.IntPredicate predicate,
int ifNone)
detectIfNone in interface org.eclipse.collections.api.IntIterablepublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.IntToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.IntBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableIntBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectioncollect in interface org.eclipse.collections.api.IntIterablepublic int max()
max in interface org.eclipse.collections.api.IntIterablepublic int min()
min in interface org.eclipse.collections.api.IntIterablepublic long sum()
sum in interface org.eclipse.collections.api.IntIterablepublic int[] toArray()
toArray in interface org.eclipse.collections.api.IntIterablepublic org.eclipse.collections.api.bag.primitive.MutableIntBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableIntBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic org.eclipse.collections.api.bag.primitive.MutableIntBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableIntBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableIntBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.IntBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableIntBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionpublic org.eclipse.collections.api.iterator.MutableIntIterator intIterator()
intIterator in interface org.eclipse.collections.api.collection.primitive.MutableIntCollectionintIterator in interface org.eclipse.collections.api.IntIterablepublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionCopyright © 2004–2017. All rights reserved.