public final class FloatHashSet extends AbstractFloatSet implements com.gs.collections.api.set.primitive.MutableFloatSet, java.io.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(com.gs.collections.api.FloatIterable source) |
boolean |
allSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
anySatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
Prints a string representation of this collection onto the given
Appendable. |
com.gs.collections.api.set.primitive.MutableFloatSet |
asSynchronized() |
com.gs.collections.api.set.primitive.MutableFloatSet |
asUnmodifiable() |
void |
clear() |
<V> com.gs.collections.api.set.MutableSet<V> |
collect(com.gs.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(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
float |
detectIfNone(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone) |
void |
each(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
com.gs.collections.api.iterator.MutableFloatIterator |
floatIterator() |
void |
forEach(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure) |
com.gs.collections.api.set.primitive.FloatSet |
freeze()
Returns a frozen copy of this set.
|
int |
hashCode()
Follows the same general contract as
Set.hashCode(). |
<T> T |
injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function) |
float |
max() |
float |
min() |
static FloatHashSet |
newSet(com.gs.collections.api.FloatIterable source) |
static FloatHashSet |
newSetWith(float... source) |
boolean |
noneSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
void |
readExternal(java.io.ObjectInput in) |
com.gs.collections.api.set.primitive.MutableFloatSet |
reject(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
boolean |
remove(float value) |
boolean |
removeAll(float... source) |
boolean |
removeAll(com.gs.collections.api.FloatIterable source) |
boolean |
retainAll(float... source) |
boolean |
retainAll(com.gs.collections.api.FloatIterable source) |
FloatHashSet |
select(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate) |
int |
size()
Returns the number of items in this iterable.
|
double |
sum() |
float[] |
toArray() |
com.gs.collections.api.set.primitive.ImmutableFloatSet |
toImmutable()
Returns an immutable copy of this set.
|
FloatHashSet |
with(float element) |
FloatHashSet |
withAll(com.gs.collections.api.FloatIterable elements) |
FloatHashSet |
without(float element) |
FloatHashSet |
withoutAll(com.gs.collections.api.FloatIterable elements) |
void |
writeExternal(java.io.ObjectOutput out) |
equalsappendString, appendString, asLazy, average, containsAll, containsAll, isEmpty, makeString, makeString, makeString, maxIfEmpty, median, minIfEmpty, notEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic FloatHashSet()
public FloatHashSet(int initialCapacity)
public FloatHashSet(float... elements)
public FloatHashSet(FloatHashSet set)
public static FloatHashSet newSet(com.gs.collections.api.FloatIterable source)
public static FloatHashSet newSetWith(float... source)
public int hashCode()
com.gs.collections.api.set.primitive.FloatSetSet.hashCode().hashCode in interface com.gs.collections.api.set.primitive.FloatSethashCode in class AbstractFloatSetpublic int size()
com.gs.collections.api.PrimitiveIterablesize in interface com.gs.collections.api.PrimitiveIterablepublic void appendString(java.lang.Appendable appendable,
java.lang.String start,
java.lang.String separator,
java.lang.String end)
com.gs.collections.api.PrimitiveIterableAppendable. Prints the string returned
by PrimitiveIterable.makeString(String, String, String).appendString in interface com.gs.collections.api.PrimitiveIterablepublic boolean add(float element)
add in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(float... source)
addAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean addAll(com.gs.collections.api.FloatIterable source)
addAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean remove(float value)
remove in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(com.gs.collections.api.FloatIterable source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean removeAll(float... source)
removeAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic boolean retainAll(com.gs.collections.api.FloatIterable source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionCollection.retainAll(Collection)public boolean retainAll(float... source)
retainAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionCollection.retainAll(Collection)public void clear()
clear in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionpublic FloatHashSet with(float element)
with in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwith in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet without(float element)
without in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithout in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet withAll(com.gs.collections.api.FloatIterable elements)
withAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithAll in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic FloatHashSet withoutAll(com.gs.collections.api.FloatIterable elements)
withoutAll in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionwithoutAll in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic com.gs.collections.api.set.primitive.MutableFloatSet asUnmodifiable()
asUnmodifiable in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionasUnmodifiable in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic com.gs.collections.api.set.primitive.MutableFloatSet asSynchronized()
asSynchronized in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionasSynchronized in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic com.gs.collections.api.set.primitive.ImmutableFloatSet toImmutable()
com.gs.collections.api.set.primitive.MutableFloatSettoImmutable in interface com.gs.collections.api.collection.primitive.MutableFloatCollectiontoImmutable in interface com.gs.collections.api.set.primitive.FloatSettoImmutable in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic com.gs.collections.api.iterator.MutableFloatIterator floatIterator()
floatIterator in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionfloatIterator in interface com.gs.collections.api.FloatIterablepublic float[] toArray()
toArray in interface com.gs.collections.api.FloatIterablepublic boolean contains(float value)
contains in interface com.gs.collections.api.FloatIterablepublic void forEach(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
forEach in interface com.gs.collections.api.FloatIterablepublic void each(com.gs.collections.api.block.procedure.primitive.FloatProcedure procedure)
each in interface com.gs.collections.api.FloatIterablepublic FloatHashSet select(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
select in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionselect in interface com.gs.collections.api.FloatIterableselect in interface com.gs.collections.api.set.primitive.FloatSetselect in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic com.gs.collections.api.set.primitive.MutableFloatSet reject(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
reject in interface com.gs.collections.api.collection.primitive.MutableFloatCollectionreject in interface com.gs.collections.api.FloatIterablereject in interface com.gs.collections.api.set.primitive.FloatSetreject in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic <V> com.gs.collections.api.set.MutableSet<V> collect(com.gs.collections.api.block.function.primitive.FloatToObjectFunction<? extends V> function)
collect in interface com.gs.collections.api.collection.primitive.MutableFloatCollectioncollect in interface com.gs.collections.api.FloatIterablecollect in interface com.gs.collections.api.set.primitive.FloatSetcollect in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic float detectIfNone(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate,
float ifNone)
detectIfNone in interface com.gs.collections.api.FloatIterablepublic int count(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
count in interface com.gs.collections.api.FloatIterablepublic boolean anySatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
anySatisfy in interface com.gs.collections.api.FloatIterablepublic boolean allSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
allSatisfy in interface com.gs.collections.api.FloatIterablepublic boolean noneSatisfy(com.gs.collections.api.block.predicate.primitive.FloatPredicate predicate)
noneSatisfy in interface com.gs.collections.api.FloatIterablepublic double sum()
sum in interface com.gs.collections.api.FloatIterablepublic float max()
max in interface com.gs.collections.api.FloatIterablepublic float min()
min in interface com.gs.collections.api.FloatIterablepublic com.gs.collections.api.set.primitive.FloatSet freeze()
com.gs.collections.api.set.primitive.MutableFloatSetfreeze in interface com.gs.collections.api.set.primitive.FloatSetfreeze in interface com.gs.collections.api.set.primitive.MutableFloatSetpublic void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOExceptionpublic void readExternal(java.io.ObjectInput in)
throws java.io.IOException
readExternal in interface java.io.Externalizablejava.io.IOExceptionpublic <T> T injectInto(T injectedValue,
com.gs.collections.api.block.function.primitive.ObjectFloatToObjectFunction<? super T,? extends T> function)
injectInto in interface com.gs.collections.api.FloatIterablepublic void compact()