Class FloatHashSet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.set.primitive.AbstractFloatSet
org.eclipse.collections.impl.set.mutable.primitive.FloatHashSet
- All Implemented Interfaces:
Externalizable,Serializable,MutableFloatCollection,FloatIterable,PrimitiveIterable,FloatSet,MutableFloatSet
This file was automatically generated from template file primitiveHashSet.stg.
- Since:
- 3.0.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFloatHashSet(float... elements) FloatHashSet(int initialCapacity) FloatHashSet(FloatIterable elements) FloatHashSet(FloatHashSet set) -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd(float element) booleanaddAll(float... source) booleanaddAll(FloatIterable source) booleanallSatisfy(FloatPredicate predicate) booleananySatisfy(FloatPredicate predicate) voidappendString(Appendable appendable, String start, String separator, String end) boxed()chunk(int size) voidclear()<V> MutableSet<V>collect(FloatToObjectFunction<? extends V> function) <V,R extends Collection<V>>
Rcollect(FloatToObjectFunction<? extends V> function, R target) voidcompact()Deprecated.booleancontains(float value) intcount(FloatPredicate predicate) floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) freeze()inthashCode()<T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) floatmax()floatmin()newEmpty()Creates a new empty FloatHashSet.static FloatHashSetnewSet(FloatIterable source) static FloatHashSetnewSetWith(float... source) voidreject(FloatPredicate predicate) <R extends MutableFloatCollection>
Rreject(FloatPredicate predicate, R target) booleanremove(float value) booleanremoveAll(float... source) booleanremoveAll(FloatIterable source) booleanretainAll(float... source) booleanretainAll(FloatIterable source) select(FloatPredicate predicate) <R extends MutableFloatCollection>
Rselect(FloatPredicate predicate, R target) intsize()doublesum()float[]toArray()float[]toArray(float[] array) booleanwith(float element) withAll(FloatIterable elements) without(float element) withoutAll(FloatIterable elements) voidMethods inherited from class org.eclipse.collections.impl.set.primitive.AbstractFloatSet
cartesianProduct, equalsMethods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface org.eclipse.collections.api.FloatIterable
asLazy, average, averageIfEmpty, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, forEach, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface org.eclipse.collections.api.set.primitive.FloatSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tapMethods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
removeIfMethods inherited from interface org.eclipse.collections.api.set.primitive.MutableFloatSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
Constructor Details
-
FloatHashSet
public FloatHashSet() -
FloatHashSet
public FloatHashSet(int initialCapacity) -
FloatHashSet
public FloatHashSet(float... elements) -
FloatHashSet
-
FloatHashSet
-
-
Method Details
-
boxed
- Specified by:
boxedin interfaceMutableFloatSet
-
newSet
-
newSetWith
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceFloatSet- Specified by:
hashCodein classAbstractFloatSet
-
size
public int size()- Specified by:
sizein interfacePrimitiveIterable
-
appendString
- Specified by:
appendStringin interfacePrimitiveIterable
-
add
public boolean add(float element) - Specified by:
addin interfaceMutableFloatCollection
-
addAll
public boolean addAll(float... source) - Specified by:
addAllin interfaceMutableFloatCollection
-
addAll
- Specified by:
addAllin interfaceMutableFloatCollection
-
remove
public boolean remove(float value) - Specified by:
removein interfaceMutableFloatCollection
-
removeAll
- Specified by:
removeAllin interfaceMutableFloatCollection
-
removeAll
public boolean removeAll(float... source) - Specified by:
removeAllin interfaceMutableFloatCollection
-
retainAll
- Specified by:
retainAllin interfaceMutableFloatCollection
-
retainAll
public boolean retainAll(float... source) - Specified by:
retainAllin interfaceMutableFloatCollection
-
clear
public void clear()- Specified by:
clearin interfaceMutableFloatCollection
-
with
- Specified by:
within interfaceMutableFloatCollection- Specified by:
within interfaceMutableFloatSet
-
without
- Specified by:
withoutin interfaceMutableFloatCollection- Specified by:
withoutin interfaceMutableFloatSet
-
withAll
- Specified by:
withAllin interfaceMutableFloatCollection- Specified by:
withAllin interfaceMutableFloatSet
-
withoutAll
- Specified by:
withoutAllin interfaceMutableFloatCollection- Specified by:
withoutAllin interfaceMutableFloatSet
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableFloatCollection- Specified by:
asUnmodifiablein interfaceMutableFloatSet
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableFloatCollection- Specified by:
asSynchronizedin interfaceMutableFloatSet
-
toImmutable
- Specified by:
toImmutablein interfaceFloatSet- Specified by:
toImmutablein interfaceMutableFloatCollection- Specified by:
toImmutablein interfaceMutableFloatSet
-
floatIterator
- Specified by:
floatIteratorin interfaceFloatIterable- Specified by:
floatIteratorin interfaceMutableFloatCollection
-
toArray
public float[] toArray()- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] array) - Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value) - Specified by:
containsin interfaceFloatIterable
-
each
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
select
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatSet- Specified by:
selectin interfaceMutableFloatCollection- Specified by:
selectin interfaceMutableFloatSet
-
select
- Specified by:
selectin interfaceFloatIterable- Since:
- 8.1.
-
reject
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatSet- Specified by:
rejectin interfaceMutableFloatCollection- Specified by:
rejectin interfaceMutableFloatSet
-
reject
- Specified by:
rejectin interfaceFloatIterable- Since:
- 8.1.
-
collect
- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatSet- Specified by:
collectin interfaceMutableFloatCollection- Specified by:
collectin interfaceMutableFloatSet
-
collect
public <V,R extends Collection<V>> R collect(FloatToObjectFunction<? extends V> function, R target) - Specified by:
collectin interfaceFloatIterable- Since:
- 8.1.
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
count
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
- Specified by:
allSatisfyin interfaceFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
freeze
- Specified by:
freezein interfaceFloatSet- Specified by:
freezein interfaceMutableFloatSet
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceFloatIterable
-
chunk
- Specified by:
chunkin interfaceFloatIterable
-
newEmpty
Creates a new empty FloatHashSet.- Specified by:
newEmptyin interfaceMutableFloatCollection- Specified by:
newEmptyin interfaceMutableFloatSet- Since:
- 9.2.
-
trimToSize
public boolean trimToSize()- Since:
- 12.0
-
compact
Deprecated.since 12.0 - UsetrimToSize()insteadRehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.
-
trimToSize()instead