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

public Class UnmodifiableDoubleSet

extends AbstractUnmodifiableDoubleCollection
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
org.eclipse.collections.api.DoubleIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableDoubleSet, .DoubleSet, .MutableDoubleSet, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection, org.eclipse.collections.api.tuple.primitive.DoubleDoublePair, org.eclipse.collections.impl.factory.primitive.DoubleSets

This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
Since
3.1.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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 UnmodifiableDoubleSet
of(MutableDoubleSet set)

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

public MutableDoubleSet
public MutableDoubleSet
public ImmutableDoubleSet
public UnmodifiableDoubleSet
public UnmodifiableDoubleSet
public UnmodifiableDoubleSet
public UnmodifiableDoubleSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNonedoubleIteratoreachgetDoubleCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

UnmodifiableDoubleSetback to summary
public UnmodifiableDoubleSet(MutableDoubleSet set)

Method Detail

asSynchronizedback to summary
public MutableDoubleSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection.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.AbstractUnmodifiableDoubleCollection.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.AbstractUnmodifiableDoubleCollection.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 UnmodifiableDoubleSet of(MutableDoubleSet set)

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

rejectback to summary
public MutableDoubleSet reject(DoublePredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection.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.AbstractUnmodifiableDoubleCollection.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.AbstractUnmodifiableDoubleCollection.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 UnmodifiableDoubleSet with(double element)

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

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

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

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

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

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

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

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

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

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

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

Annotations
@Override