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

public Class SynchronizedFloatSet

extends AbstractSynchronizedFloatCollection
implements MutableFloatSet
Class Inheritance
All Implemented Interfaces
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.util.Collection, .Collections, org.eclipse.collections.api.FloatIterable, .LazyFloatIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.FloatToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.FloatPredicate, org.eclipse.collections.api.iterator.FloatIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableFloatSet, .FloatSet, .MutableFloatSet, org.eclipse.collections.api.tuple.primitive.FloatFloatPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection, org.eclipse.collections.impl.lazy.primitive.LazyFloatIterableAdapter, org.eclipse.collections.impl.factory.primitive.FloatSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

A synchronized view of a MutableFloatSet. It is imperative that the user manually synchronize on the collection when iterating over it using the FloatIterator, as per Collections#synchronizedCollection(Collection).

This file was automatically generated from template file synchronizedPrimitiveSet.stg.

Since
3.1.
See Also
MutableFloatSet#asSynchronized(), MutableSet#asSynchronized()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public LazyFloatIterable
public MutableFloatSet
public MutableFloatSet
public MutableSet<Float>
public LazyIterable<FloatFloatPair>
cartesianProduct(FloatSet set)

Implements org.eclipse.collections.api.set.primitive.FloatSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

public <V> MutableSet<V>
public boolean
equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.FloatSet.equals.

Follows the same general contract as Set#equals(Object).

public FloatSet
freeze()

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.freeze.

Returns a frozen copy of this set.

private MutableFloatSet
public int
public MutableFloatSet
public static SynchronizedFloatSet
of(MutableFloatSet set)

This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.

public static SynchronizedFloatSet
of(MutableFloatSet set, Object lock)

This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.

public MutableFloatSet
public MutableFloatSet
public ImmutableFloatSet
public SynchronizedFloatSet
public SynchronizedFloatSet
public SynchronizedFloatSet
public SynchronizedFloatSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachfloatIteratorgetFloatCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.serialVersionUID.

Constructor Detail

SynchronizedFloatSetback to summary
public SynchronizedFloatSet(MutableFloatSet set)
SynchronizedFloatSetback to summary
public SynchronizedFloatSet(MutableFloatSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyFloatIterable asLazy()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.asLazy.

Implements org.eclipse.collections.api.FloatIterable.asLazy.

Doc from org.eclipse.collections.api.FloatIterable.asLazy.

Returns a LazyFloatIterable adapter wrapping the source FloatIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableFloatSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.asSynchronized.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableFloatSet asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.asUnmodifiable.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Float> boxed()

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.boxed.

Annotations
@Override
cartesianProductback to summary
public LazyIterable<FloatFloatPair> cartesianProduct(FloatSet set)

Implements org.eclipse.collections.api.set.primitive.FloatSet.cartesianProduct.

Doc from org.eclipse.collections.api.set.primitive.FloatSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

Annotations
@Override
collectback to summary
public <V> MutableSet<V> collect(FloatToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.collect.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.collect, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.collect.

Doc from 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. This method is also commonly called transform or map.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.FloatSet.equals.

Doc from org.eclipse.collections.api.set.primitive.FloatSet.equals.

Follows the same general contract as Set#equals(Object).

Annotations
@Override
freezeback to summary
public FloatSet freeze()

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.freeze.

Doc from org.eclipse.collections.api.set.primitive.MutableFloatSet.freeze.

Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.

getMutableFloatSetback to summary
private MutableFloatSet getMutableFloatSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.set.primitive.FloatSet.hashCode.

Doc from org.eclipse.collections.api.set.primitive.FloatSet.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
newEmptyback to summary
public MutableFloatSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableFloatSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.newEmpty.

Doc from org.eclipse.collections.api.set.primitive.MutableFloatSet.newEmpty.

Creates a new empty mutable version of the same Set type.

Since
9.2.
ofback to summary
public static SynchronizedFloatSet of(MutableFloatSet set)

This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet.

ofback to summary
public static SynchronizedFloatSet of(MutableFloatSet set, Object lock)

This method will take a MutableFloatSet and wrap it directly in a SynchronizedFloatSet. Additionally, a developer specifies which lock to use with the collection.

rejectback to summary
public MutableFloatSet reject(FloatPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.reject.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.reject, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.reject.

Doc from 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.

Annotations
@Override
selectback to summary
public MutableFloatSet select(FloatPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.select.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.select, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.select.

Doc from 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.

Annotations
@Override
toImmutableback to summary
public ImmutableFloatSet toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.toImmutable.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.toImmutable.

Doc from org.eclipse.collections.api.set.primitive.MutableFloatSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedFloatSet with(float element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.with.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.with, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedFloatSet withAll(FloatIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.withAll.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.withAll, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedFloatSet without(float element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.without.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.without, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedFloatSet withoutAll(FloatIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedFloatCollection.withoutAll.

Implements org.eclipse.collections.api.set.primitive.MutableFloatSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableFloatCollection.withoutAll.

Annotations
@Override