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

public Interface ImmutableDoubleSet

extends ImmutableDoubleCollection, 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.ImmutableDoubleCollection, org.eclipse.collections.api.set.ImmutableSet

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

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableSet<V>
collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet
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 default ImmutableDoubleSet
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 ImmutableDoubleSet
public ImmutableDoubleSet
public ImmutableDoubleSet
public ImmutableDoubleSet
public ImmutableDoubleSet
reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet
select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet
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 ImmutableDoubleSet
public default ImmutableDoubleSet
Inherited from org.eclipse.collections.api.set.primitive.DoubleSet:
cartesianProductequalsfreezehashCodeisProperSubsetOfisSubsetOftoImmutable

Method Detail

collectback to summary
public <V> ImmutableSet<V> collect(DoubleToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet 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.
intersectback to summary
public default ImmutableDoubleSet 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.
newWithback to summary
public ImmutableDoubleSet newWith(double element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableDoubleSet newWithAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableDoubleSet newWithout(double element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableDoubleSet newWithoutAll(DoubleIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableDoubleSet reject(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet select(DoublePredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableDoubleCollection.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 ImmutableDoubleSet 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 ImmutableDoubleSet tap(DoubleProcedure procedure)

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

Annotations
@Override
Since
9.0.
unionback to summary
public default ImmutableDoubleSet union(DoubleSet set)

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

Annotations
@Override
Since
11.0.