Top Description Inners Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class FloatHashSet

extends AbstractFloatSet
implements MutableFloatSet, Externalizable
Class Inheritance
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable, org.eclipse.collections.api.set.primitive.MutableFloatSet, org.eclipse.collections.api.set.primitive.FloatSet, org.eclipse.collections.api.FloatIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection
Imports
java.io.Externalizable, .IOException, .ObjectInput, .ObjectOutput, .Serializable, java.util.Arrays, .Collection, .NoSuchElementException, org.eclipse.collections.api.FloatIterable, .RichIterable, org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction, .ObjectFloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatPredicate, org.eclipse.collections.api.block.procedure.primitive.FloatProcedure, org.eclipse.collections.api.collection.primitive.MutableFloatCollection, org.eclipse.collections.api.factory.Lists, org.eclipse.collections.api.factory.primitive.FloatSets, org.eclipse.collections.api.iterator.FloatIterator, .MutableFloatIterator, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.primitive.ImmutableFloatSet, .MutableFloatSet, .FloatSet, org.eclipse.collections.impl.set.immutable.primitive.ImmutableFloatSetSerializationProxy, .AbstractImmutableFloatSet, org.eclipse.collections.impl.set.mutable.UnifiedSet, org.eclipse.collections.impl.SpreadFunctions, org.eclipse.collections.impl.set.primitive.AbstractFloatSet

This file was automatically generated from template file primitiveHashSet.stg.
Since
3.0.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private class

Field Summary

Modifier and TypeField and Description
private static final int
private transient boolean
private static final int
private static final float
private static final int
private static final int
private int
private int
private static final float
private static final long
private float[]
private int
private int

Constructor Summary

AccessConstructor and Description
public
public
FloatHashSet(int initialCapacity)

public
FloatHashSet(float... elements)

public
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
protected void
allocateTable(int sizeToAllocate)

public boolean
allSatisfy(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.allSatisfy.

Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.anySatisfy.

Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public MutableFloatSet
public MutableFloatSet
public MutableSet<Float>
public RichIterable<FloatIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.FloatIterable.chunk.

Partitions elements in fixed size chunks.

public void
public <V> MutableSet<V>
collect(FloatToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.collect, org.eclipse.collections.api.set.primitive.FloatSet.collect, org.eclipse.collections.api.FloatIterable.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public <V, R extends Collection<V>> R
collect(FloatToObjectFunction<? extends V> function, R target)

Overrides default org.eclipse.collections.api.FloatIterable.collect.

Same as collect(FloatToObjectFunction) , only the results are added to the target Collection.

public void
compact()
Deprecated since 12.0 - Use trimToSize() instead

Rehashes every element in the set into a new backing table of the smallest possible size and eliminating removed sentinels.

public boolean
contains(float value)

Implements org.eclipse.collections.api.FloatIterable.contains.

Returns true if the value is contained in the FloatIterable, and false if it is not.

private void
public int
count(FloatPredicate predicate)

Implements org.eclipse.collections.api.FloatIterable.count.

Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.

public float
public void
each(FloatProcedure procedure)

Implements org.eclipse.collections.api.FloatIterable.each.

A synonym for forEach.

public MutableFloatIterator
floatIterator()

Implements org.eclipse.collections.api.collection.primitive.MutableFloatCollection.floatIterator, org.eclipse.collections.api.FloatIterable.floatIterator.

Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.

public FloatSet
public int
public <T> T
injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.FloatIterable.injectInto.

private static boolean
private static boolean
isNonSentinel(float value)

private int
mask(int spread)

public float
private int
public float
public FloatHashSet
newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableFloatSet.newEmpty.

Creates a new empty FloatHashSet.

public static FloatHashSet
public static FloatHashSet
newSetWith(float... source)

pack-priv int
probe(float element)

pack-priv int
probeThree(float element, int removedIndex)

pack-priv int
probeTwo(float element, int removedIndex)

public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

private void
rehash(int newCapacity)

private void
public FloatHashSet
reject(FloatPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.reject, org.eclipse.collections.api.set.primitive.FloatSet.reject, org.eclipse.collections.api.FloatIterable.reject.

Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.

public <R extends MutableFloatCollection> R
reject(FloatPredicate predicate, R target)

Overrides default org.eclipse.collections.api.FloatIterable.reject.

Same as reject(FloatPredicate) , only the results are added to the target MutableFloatCollection.

public boolean
public boolean
public boolean
private boolean
removeZeroToThirtyOne(float value)

public boolean
public boolean
public FloatHashSet
select(FloatPredicate predicate)

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.select, org.eclipse.collections.api.set.primitive.FloatSet.select, org.eclipse.collections.api.FloatIterable.select.

Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.

public <R extends MutableFloatCollection> R
select(FloatPredicate predicate, R target)

Overrides default org.eclipse.collections.api.FloatIterable.select.

Same as select(FloatPredicate) , only the results are added to the target MutableFloatCollection.

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

private int
pack-priv int
spreadAndMask(float element)

pack-priv int
spreadTwoAndMask(float element)

public double
public float[]
toArray()

Implements org.eclipse.collections.api.FloatIterable.toArray.

Converts the FloatIterable to a primitive float array.

public float[]
toArray(float[] array)

Overrides default org.eclipse.collections.api.FloatIterable.toArray.

Converts the FloatIterable to a primitive float array.

public ImmutableFloatSet
public boolean
public FloatHashSet
public FloatHashSet
public FloatHashSet
public FloatHashSet
public void
writeExternal(ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

Inherited from org.eclipse.collections.impl.set.primitive.AbstractFloatSet:
cartesianProductequals