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
public class FloatHashSet extends AbstractFloatSet implements MutableFloatSet, Externalizable
This file was automatically generated from template file primitiveHashSet.stg.- Since:
- 3.0.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FloatHashSet()FloatHashSet(float... elements)FloatHashSet(int initialCapacity)FloatHashSet(FloatIterable elements)FloatHashSet(FloatHashSet set)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractFloatSet
cartesianProduct, equals
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods 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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.FloatSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tap
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableFloatCollection
removeIf
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableFloatSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
-
-
-
Constructor Detail
-
FloatHashSet
public FloatHashSet()
-
FloatHashSet
public FloatHashSet(int initialCapacity)
-
FloatHashSet
public FloatHashSet(float... elements)
-
FloatHashSet
public FloatHashSet(FloatIterable elements)
-
FloatHashSet
public FloatHashSet(FloatHashSet set)
-
-
Method Detail
-
boxed
public MutableSet<Float> boxed()
- Specified by:
boxedin interfaceMutableFloatSet
-
newSet
public static FloatHashSet newSet(FloatIterable source)
-
newSetWith
public static FloatHashSet newSetWith(float... source)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceFloatSet- Specified by:
hashCodein classAbstractFloatSet
-
size
public int size()
- Specified by:
sizein interfacePrimitiveIterable
-
appendString
public void appendString(Appendable appendable, String start, String separator, String end)
- 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
public boolean addAll(FloatIterable source)
- Specified by:
addAllin interfaceMutableFloatCollection
-
remove
public boolean remove(float value)
- Specified by:
removein interfaceMutableFloatCollection
-
removeAll
public boolean removeAll(FloatIterable source)
- Specified by:
removeAllin interfaceMutableFloatCollection
-
removeAll
public boolean removeAll(float... source)
- Specified by:
removeAllin interfaceMutableFloatCollection
-
retainAll
public boolean retainAll(FloatIterable source)
- Specified by:
retainAllin interfaceMutableFloatCollection
-
retainAll
public boolean retainAll(float... source)
- Specified by:
retainAllin interfaceMutableFloatCollection
-
clear
public void clear()
- Specified by:
clearin interfaceMutableFloatCollection
-
with
public FloatHashSet with(float element)
- Specified by:
within interfaceMutableFloatCollection- Specified by:
within interfaceMutableFloatSet
-
without
public FloatHashSet without(float element)
- Specified by:
withoutin interfaceMutableFloatCollection- Specified by:
withoutin interfaceMutableFloatSet
-
withAll
public FloatHashSet withAll(FloatIterable elements)
- Specified by:
withAllin interfaceMutableFloatCollection- Specified by:
withAllin interfaceMutableFloatSet
-
withoutAll
public FloatHashSet withoutAll(FloatIterable elements)
- Specified by:
withoutAllin interfaceMutableFloatCollection- Specified by:
withoutAllin interfaceMutableFloatSet
-
asUnmodifiable
public MutableFloatSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableFloatCollection- Specified by:
asUnmodifiablein interfaceMutableFloatSet
-
asSynchronized
public MutableFloatSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableFloatCollection- Specified by:
asSynchronizedin interfaceMutableFloatSet
-
toImmutable
public ImmutableFloatSet toImmutable()
- Specified by:
toImmutablein interfaceFloatSet- Specified by:
toImmutablein interfaceMutableFloatCollection- Specified by:
toImmutablein interfaceMutableFloatSet
-
floatIterator
public MutableFloatIterator 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
public void each(FloatProcedure procedure)
- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
select
public FloatHashSet select(FloatPredicate predicate)
- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatSet- Specified by:
selectin interfaceMutableFloatCollection- Specified by:
selectin interfaceMutableFloatSet
-
select
public <R extends MutableFloatCollection> R select(FloatPredicate predicate, R target)
- Specified by:
selectin interfaceFloatIterable- Since:
- 8.1.
-
reject
public FloatHashSet reject(FloatPredicate predicate)
- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatSet- Specified by:
rejectin interfaceMutableFloatCollection- Specified by:
rejectin interfaceMutableFloatSet
-
reject
public <R extends MutableFloatCollection> R reject(FloatPredicate predicate, R target)
- Specified by:
rejectin interfaceFloatIterable- Since:
- 8.1.
-
collect
public <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)
- 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
public float detectIfNone(FloatPredicate predicate, float ifNone)
- Specified by:
detectIfNonein interfaceFloatIterable
-
count
public int count(FloatPredicate predicate)
- Specified by:
countin interfaceFloatIterable
-
anySatisfy
public boolean anySatisfy(FloatPredicate predicate)
- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
public boolean allSatisfy(FloatPredicate predicate)
- 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
public FloatSet freeze()
- Specified by:
freezein interfaceFloatSet- Specified by:
freezein interfaceMutableFloatSet
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOException
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T,? extends T> function)- Specified by:
injectIntoin interfaceFloatIterable
-
chunk
public RichIterable<FloatIterable> chunk(int size)
- Specified by:
chunkin interfaceFloatIterable
-
newEmpty
public FloatHashSet 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 public void 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.
-
-