Top Description Methods
org.eclipse.collections.api.set.primitive

public Interface MutableDoubleSet

extends MutableDoubleCollection, DoubleSet
Imports
org.eclipse.collections.api.DoubleIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.collection.primitive.MutableDoubleCollection, org.eclipse.collections.api.set.MutableSet

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

Method Summary

Modifier and TypeMethod and Description
public MutableDoubleSet
public MutableDoubleSet
public MutableSet<Double>
public <V> MutableSet<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.collect, org.eclipse.collections.api.set.primitive.DoubleSet.collect.

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

public default MutableDoubleSet
difference(DoubleSet set)

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

Returns the set of all members of this that are not members of set.

public DoubleSet
freeze()

Redeclares org.eclipse.collections.api.set.primitive.DoubleSet.freeze.

Returns a frozen copy of this set.

public default MutableDoubleSet
intersect(DoubleSet set)

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

Returns the set of all objects that are members of both this and set.

public default MutableDoubleSet
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

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

public MutableDoubleSet
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.reject, org.eclipse.collections.api.set.primitive.DoubleSet.reject.

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

public MutableDoubleSet
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.select, org.eclipse.collections.api.set.primitive.DoubleSet.select.

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

public default MutableDoubleSet
symmetricDifference(DoubleSet set)

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

Returns the set of all objects that are a member of exactly one of this and set (elements which are in one of the sets, but not in both).

public default MutableDoubleSet
public ImmutableDoubleSet
public default MutableDoubleSet
public MutableDoubleSet
public MutableDoubleSet
public MutableDoubleSet
public MutableDoubleSet
Inherited from org.eclipse.collections.api.collection.primitive.MutableDoubleCollection:
addaddAlladdAllcleardoubleIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.set.primitive.DoubleSet:
cartesianProductequalshashCodeisProperSubsetOfisSubsetOf

Method Detail

asSynchronizedback to summary
public MutableDoubleSet asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableDoubleSet asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Double> boxed()
collectback to summary
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.collect, org.eclipse.collections.api.set.primitive.DoubleSet.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
differenceback to summary
public default MutableDoubleSet difference(DoubleSet set)

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

Returns the set of all members of this that are not members of set. The difference of [1, 2, 3] and [2, 3, 4] is [1].

Annotations
@Override
Since
11.0.
freezeback to summary
public DoubleSet freeze()

Redeclares org.eclipse.collections.api.set.primitive.DoubleSet.freeze.

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

Annotations
@Override
intersectback to summary
public default MutableDoubleSet intersect(DoubleSet set)

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

Returns the set of all objects that are members of both this and set. The intersection of [1, 2, 3] and [2, 3, 4] is the set [2, 3].

Annotations
@Override
Since
11.0.
newEmptyback to summary
public default MutableDoubleSet newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.newEmpty.

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

Since
9.2.
rejectback to summary
public MutableDoubleSet reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.reject, org.eclipse.collections.api.set.primitive.DoubleSet.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)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.select, org.eclipse.collections.api.set.primitive.DoubleSet.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
symmetricDifferenceback to summary
public default MutableDoubleSet symmetricDifference(DoubleSet set)

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

Returns the set of all objects that are a member of exactly one of this and set (elements which are in one of the sets, but not in both). For instance, for the sets [1, 2, 3] and [2, 3, 4], the symmetric difference set is [1, 4] . It is the set difference of the union and the intersection.

Annotations
@Override
Since
11.0.
tapback to summary
public default MutableDoubleSet tap(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.tap, org.eclipse.collections.api.set.primitive.DoubleSet.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableDoubleSet toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.toImmutable, org.eclipse.collections.api.set.primitive.DoubleSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
unionback to summary
public default MutableDoubleSet union(DoubleSet set)

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

Annotations
@Override
Since
11.0.
withback to summary
public MutableDoubleSet with(double element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.with.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withAll.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.without.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableDoubleCollection.withoutAll.

Annotations
@Override