@NotThreadSafe public final class FloatHashBag extends AbstractFloatIterable implements org.eclipse.collections.api.bag.primitive.MutableFloatBag, Externalizable
HashBag, and is memory-optimized for float primitives.
This file was automatically generated from template file primitiveHashBag.stg.| Constructor and Description |
|---|
FloatHashBag() |
FloatHashBag(float... elements) |
FloatHashBag(FloatHashBag bag) |
FloatHashBag(org.eclipse.collections.api.FloatIterable iterable) |
FloatHashBag(int size) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float item) |
boolean |
addAll(float... source) |
boolean |
addAll(org.eclipse.collections.api.FloatIterable source) |
void |
addOccurrences(float item,
int occurrences) |
boolean |
allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
appendString(Appendable appendable,
String start,
String separator,
String end) |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
asSynchronized() |
org.eclipse.collections.api.bag.primitive.MutableFloatBag |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.bag.MutableBag<V> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
boolean |
contains(float value) |
int |
count(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
boolean |
equals(Object otherBag) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
void |
forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure) |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function) |
boolean |
isEmpty() |
float |
max() |
float |
min() |
static FloatHashBag |
newBag(org.eclipse.collections.api.bag.primitive.FloatBag source) |
static FloatHashBag |
newBag(org.eclipse.collections.api.FloatIterable source) |
static FloatHashBag |
newBag(int size) |
static FloatHashBag |
newBagWith(float... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
notEmpty() |
int |
occurrencesOf(float item) |
void |
readExternal(ObjectInput in) |
FloatHashBag |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
remove(float item) |
boolean |
removeAll(float... source) |
boolean |
removeAll(org.eclipse.collections.api.FloatIterable source) |
boolean |
removeOccurrences(float item,
int occurrences) |
boolean |
retainAll(float... source) |
boolean |
retainAll(org.eclipse.collections.api.FloatIterable source) |
FloatHashBag |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
int |
size() |
int |
sizeDistinct() |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.bag.primitive.ImmutableFloatBag |
toImmutable() |
FloatHashBag |
with(float element) |
FloatHashBag |
with(float element1,
float element2) |
FloatHashBag |
with(float element1,
float element2,
float element3) |
FloatHashBag |
withAll(org.eclipse.collections.api.FloatIterable iterable) |
FloatHashBag |
without(float element) |
FloatHashBag |
withoutAll(org.eclipse.collections.api.FloatIterable iterable) |
void |
writeExternal(ObjectOutput out) |
appendString, appendString, asLazy, average, containsAll, containsAll, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic FloatHashBag()
public FloatHashBag(int size)
public FloatHashBag(org.eclipse.collections.api.FloatIterable iterable)
public FloatHashBag(float... elements)
public FloatHashBag(FloatHashBag bag)
public static FloatHashBag newBag(int size)
public static FloatHashBag newBagWith(float... source)
public static FloatHashBag newBag(org.eclipse.collections.api.FloatIterable source)
public static FloatHashBag newBag(org.eclipse.collections.api.bag.primitive.FloatBag source)
public boolean isEmpty()
isEmpty in interface org.eclipse.collections.api.PrimitiveIterableisEmpty in class AbstractFloatIterablepublic boolean notEmpty()
notEmpty in interface org.eclipse.collections.api.PrimitiveIterablenotEmpty in class AbstractFloatIterablepublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic int sizeDistinct()
sizeDistinct in interface org.eclipse.collections.api.bag.primitive.FloatBagpublic void clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashBag with(float element)
with in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagwith in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashBag with(float element1, float element2)
public FloatHashBag with(float element1, float element2, float element3)
public FloatHashBag withAll(org.eclipse.collections.api.FloatIterable iterable)
withAll in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagwithAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashBag without(float element)
without in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagwithout in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashBag withoutAll(org.eclipse.collections.api.FloatIterable iterable)
withoutAll in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagwithoutAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic int occurrencesOf(float item)
occurrencesOf in interface org.eclipse.collections.api.bag.primitive.FloatBagpublic void forEachWithOccurrences(org.eclipse.collections.api.block.procedure.primitive.FloatIntProcedure procedure)
forEachWithOccurrences in interface org.eclipse.collections.api.bag.primitive.FloatBagpublic boolean add(float item)
add in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean remove(float item)
remove in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(float... source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(org.eclipse.collections.api.FloatIterable source)
addAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(float... source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(org.eclipse.collections.api.FloatIterable source)
removeAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean retainAll(org.eclipse.collections.api.FloatIterable source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic boolean retainAll(float... source)
retainAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic void addOccurrences(float item,
int occurrences)
addOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagpublic boolean removeOccurrences(float item,
int occurrences)
removeOccurrences in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagpublic void forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface org.eclipse.collections.api.FloatIterablepublic void each(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface org.eclipse.collections.api.FloatIterablepublic FloatHashBag select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.bag.primitive.FloatBagselect in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagselect in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionselect in interface org.eclipse.collections.api.FloatIterablepublic FloatHashBag reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.bag.primitive.FloatBagreject in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagreject in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionreject in interface org.eclipse.collections.api.FloatIterablepublic <T> T injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface org.eclipse.collections.api.FloatIterablepublic 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.FloatPredicate predicate)
count in interface org.eclipse.collections.api.FloatIterablepublic boolean anySatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean allSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface org.eclipse.collections.api.FloatIterablepublic boolean noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface org.eclipse.collections.api.FloatIterablepublic float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic <V> org.eclipse.collections.api.bag.MutableBag<V> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.bag.primitive.FloatBagcollect in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagcollect in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectioncollect in interface org.eclipse.collections.api.FloatIterablepublic float max()
max in interface org.eclipse.collections.api.FloatIterablepublic float min()
min in interface org.eclipse.collections.api.FloatIterablepublic double sum()
sum in interface org.eclipse.collections.api.FloatIterablepublic float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic org.eclipse.collections.api.bag.primitive.MutableFloatBag asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagasUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic org.eclipse.collections.api.bag.primitive.MutableFloatBag asSynchronized()
asSynchronized in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagasSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic org.eclipse.collections.api.bag.primitive.ImmutableFloatBag toImmutable()
toImmutable in interface org.eclipse.collections.api.bag.primitive.FloatBagtoImmutable in interface org.eclipse.collections.api.bag.primitive.MutableFloatBagtoImmutable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionfloatIterator in interface org.eclipse.collections.api.FloatIterablepublic 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.