public final class FloatHashSet extends AbstractFloatSet implements org.eclipse.collections.api.set.primitive.MutableFloatSet, Externalizable
| Constructor and Description |
|---|
FloatHashSet() |
FloatHashSet(float... elements) |
FloatHashSet(FloatHashSet set) |
FloatHashSet(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(float element) |
boolean |
addAll(float... source) |
boolean |
addAll(org.eclipse.collections.api.FloatIterable source) |
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.set.primitive.MutableFloatSet |
asSynchronized() |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
asUnmodifiable() |
void |
clear() |
<V> org.eclipse.collections.api.set.MutableSet<V> |
collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function) |
void |
compact()
Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
|
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) |
org.eclipse.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEach(org.eclipse.collections.api.block.procedure.primitive.FloatProcedure procedure) |
org.eclipse.collections.api.set.primitive.FloatSet |
freeze() |
int |
hashCode() |
<T> T |
injectInto(T injectedValue,
org.eclipse.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function) |
float |
max() |
float |
min() |
static FloatHashSet |
newSet(org.eclipse.collections.api.FloatIterable source) |
static FloatHashSet |
newSetWith(float... source) |
boolean |
noneSatisfy(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
readExternal(ObjectInput in) |
org.eclipse.collections.api.set.primitive.MutableFloatSet |
reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
remove(float value) |
boolean |
removeAll(float... source) |
boolean |
removeAll(org.eclipse.collections.api.FloatIterable source) |
boolean |
retainAll(float... source) |
boolean |
retainAll(org.eclipse.collections.api.FloatIterable source) |
FloatHashSet |
select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate) |
int |
size() |
double |
sum() |
float[] |
toArray() |
org.eclipse.collections.api.set.primitive.ImmutableFloatSet |
toImmutable() |
FloatHashSet |
with(float element) |
FloatHashSet |
withAll(org.eclipse.collections.api.FloatIterable elements) |
FloatHashSet |
without(float element) |
FloatHashSet |
withoutAll(org.eclipse.collections.api.FloatIterable elements) |
void |
writeExternal(ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringpublic FloatHashSet()
public FloatHashSet(int initialCapacity)
public FloatHashSet(float... elements)
public FloatHashSet(FloatHashSet set)
public static FloatHashSet newSet(org.eclipse.collections.api.FloatIterable source)
public static FloatHashSet newSetWith(float... source)
public int hashCode()
hashCode in interface org.eclipse.collections.api.set.primitive.FloatSethashCode in class AbstractFloatSetpublic int size()
size in interface org.eclipse.collections.api.PrimitiveIterablepublic void appendString(Appendable appendable, String start, String separator, String end)
appendString in interface org.eclipse.collections.api.PrimitiveIterablepublic boolean add(float element)
add 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 remove(float value)
remove 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 removeAll(float... 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 clear()
clear in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashSet with(float element)
with in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwith in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet without(float element)
without in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithout in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet withAll(org.eclipse.collections.api.FloatIterable elements)
withAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithAll in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet withoutAll(org.eclipse.collections.api.FloatIterable elements)
withoutAll in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionwithoutAll in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic org.eclipse.collections.api.set.primitive.MutableFloatSet asUnmodifiable()
asUnmodifiable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionasUnmodifiable in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic org.eclipse.collections.api.set.primitive.MutableFloatSet asSynchronized()
asSynchronized in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionasSynchronized in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic org.eclipse.collections.api.set.primitive.ImmutableFloatSet toImmutable()
toImmutable in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectiontoImmutable in interface org.eclipse.collections.api.set.primitive.FloatSettoImmutable in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic org.eclipse.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionfloatIterator in interface org.eclipse.collections.api.FloatIterablepublic float[] toArray()
toArray in interface org.eclipse.collections.api.FloatIterablepublic boolean contains(float value)
contains in interface org.eclipse.collections.api.FloatIterablepublic 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 FloatHashSet select(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionselect in interface org.eclipse.collections.api.FloatIterableselect in interface org.eclipse.collections.api.set.primitive.FloatSetselect in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic org.eclipse.collections.api.set.primitive.MutableFloatSet reject(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectionreject in interface org.eclipse.collections.api.FloatIterablereject in interface org.eclipse.collections.api.set.primitive.FloatSetreject in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic <V> org.eclipse.collections.api.set.MutableSet<V> collect(org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface org.eclipse.collections.api.collection.primitive.MutableFloatCollectioncollect in interface org.eclipse.collections.api.FloatIterablecollect in interface org.eclipse.collections.api.set.primitive.FloatSetcollect in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic float detectIfNone(org.eclipse.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface org.eclipse.collections.api.FloatIterablepublic 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 double sum()
sum 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 org.eclipse.collections.api.set.primitive.FloatSet freeze()
freeze in interface org.eclipse.collections.api.set.primitive.FloatSetfreeze in interface org.eclipse.collections.api.set.primitive.MutableFloatSetpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionpublic void readExternal(ObjectInput in) throws IOException
readExternal in interface ExternalizableIOExceptionpublic <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 void compact()
Copyright © 2004–2017. All rights reserved.