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

public Class SynchronizedDoubleSet

extends AbstractSynchronizedDoubleCollection
implements MutableDoubleSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableDoubleSet, org.eclipse.collections.api.set.primitive.DoubleSet, org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
Imports
java.util.Collection, .Collections, org.eclipse.collections.api.DoubleIterable, .LazyDoubleIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.iterator.DoubleIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableDoubleSet, .DoubleSet, .MutableDoubleSet, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection, org.eclipse.collections.impl.lazy.primitive.LazyDoubleIterableAdapter, org.eclipse.collections.impl.factory.primitive.DoubleSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

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

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

Since
3.1.
See Also
MutableDoubleSet#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 LazyDoubleIterable
public MutableDoubleSet
public MutableDoubleSet
public MutableSet<Double>
public LazyIterable<DoubleDoublePair>
cartesianProduct(DoubleSet set)

Implements org.eclipse.collections.api.set.primitive.DoubleSet.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.DoubleSet.equals.

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

public DoubleSet
freeze()

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

Returns a frozen copy of this set.

private MutableDoubleSet
public int
public MutableDoubleSet
public static SynchronizedDoubleSet
of(MutableDoubleSet set)

This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.

public static SynchronizedDoubleSet
of(MutableDoubleSet set, Object lock)

This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.

public MutableDoubleSet
public MutableDoubleSet
public ImmutableDoubleSet
public SynchronizedDoubleSet
public SynchronizedDoubleSet
public SynchronizedDoubleSet
public SynchronizedDoubleSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedDoubleCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNonedoubleIteratoreachgetDoubleCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

SynchronizedDoubleSetback to summary
public SynchronizedDoubleSet(MutableDoubleSet set)
SynchronizedDoubleSetback to summary
public SynchronizedDoubleSet(MutableDoubleSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyDoubleIterable asLazy()

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

Implements org.eclipse.collections.api.DoubleIterable.asLazy.

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

Returns a LazyDoubleIterable adapter wrapping the source DoubleIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableDoubleSet asSynchronized()

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableDoubleSet asUnmodifiable()

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asUnmodifiable.

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

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

Annotations
@Override
cartesianProductback to summary
public LazyIterable<DoubleDoublePair> cartesianProduct(DoubleSet set)

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

Doc from org.eclipse.collections.api.set.primitive.DoubleSet.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(DoubleToObjectFunction<? extends V> function)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.collect, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.collect.

Doc from org.eclipse.collections.api.DoubleIterable.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.DoubleSet.equals.

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

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

Annotations
@Override
freezeback to summary
public DoubleSet freeze()

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

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

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

getMutableDoubleSetback to summary
private MutableDoubleSet getMutableDoubleSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

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

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

Annotations
@Override
newEmptyback to summary
public MutableDoubleSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableDoubleSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

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

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

Since
9.2.
ofback to summary
public static SynchronizedDoubleSet of(MutableDoubleSet set)

This method will take a MutableDoubleSet and wrap it directly in a SynchronizedDoubleSet.

ofback to summary
public static SynchronizedDoubleSet of(MutableDoubleSet set, Object lock)

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

rejectback to summary
public MutableDoubleSet reject(DoublePredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.reject, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.reject.

Doc from org.eclipse.collections.api.DoubleIterable.reject.

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

Annotations
@Override
selectback to summary
public MutableDoubleSet select(DoublePredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.select, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.select.

Doc from org.eclipse.collections.api.DoubleIterable.select.

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

Annotations
@Override
toImmutableback to summary
public ImmutableDoubleSet toImmutable()

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.toImmutable.

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

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedDoubleSet with(double element)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.with, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedDoubleSet withAll(DoubleIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.withAll, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedDoubleSet without(double element)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.without, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedDoubleSet withoutAll(DoubleIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableDoubleSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withoutAll.

Annotations
@Override