Class UnmodifiableDoubleSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableDoubleSet
-
- All Implemented Interfaces:
Serializable
,MutableDoubleCollection
,DoubleIterable
,PrimitiveIterable
,DoubleSet
,MutableDoubleSet
public class UnmodifiableDoubleSet extends AbstractUnmodifiableDoubleCollection implements MutableDoubleSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.- Since:
- 3.1.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleSet(MutableDoubleSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableDoubleSet
asSynchronized()
MutableDoubleSet
asUnmodifiable()
MutableSet<Double>
boxed()
LazyIterable<DoubleDoublePair>
cartesianProduct(DoubleSet set)
<V> MutableSet<V>
collect(DoubleToObjectFunction<? extends V> function)
boolean
equals(Object otherSet)
DoubleSet
freeze()
int
hashCode()
MutableDoubleSet
newEmpty()
static UnmodifiableDoubleSet
of(MutableDoubleSet set)
This method will take a MutableDoubleSet and wrap it directly in a UnmodifiableDoubleSet.MutableDoubleSet
reject(DoublePredicate predicate)
MutableDoubleSet
select(DoublePredicate predicate)
ImmutableDoubleSet
toImmutable()
UnmodifiableDoubleSet
with(double element)
UnmodifiableDoubleSet
withAll(DoubleIterable elements)
UnmodifiableDoubleSet
without(double element)
UnmodifiableDoubleSet
withoutAll(DoubleIterable elements)
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, each, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from interface org.eclipse.collections.api.DoubleIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.DoubleSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableDoubleCollection
add, addAll, addAll, clear, doubleIterator, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableDoubleSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableDoubleSet
public UnmodifiableDoubleSet(MutableDoubleSet set)
-
-
Method Detail
-
of
public static UnmodifiableDoubleSet of(MutableDoubleSet set)
This method will take a MutableDoubleSet and wrap it directly in a UnmodifiableDoubleSet.
-
with
public UnmodifiableDoubleSet with(double element)
- Specified by:
with
in interfaceMutableDoubleCollection
- Specified by:
with
in interfaceMutableDoubleSet
- Overrides:
with
in classAbstractUnmodifiableDoubleCollection
-
boxed
public MutableSet<Double> boxed()
- Specified by:
boxed
in interfaceMutableDoubleSet
-
without
public UnmodifiableDoubleSet without(double element)
- Specified by:
without
in interfaceMutableDoubleCollection
- Specified by:
without
in interfaceMutableDoubleSet
- Overrides:
without
in classAbstractUnmodifiableDoubleCollection
-
withAll
public UnmodifiableDoubleSet withAll(DoubleIterable elements)
- Specified by:
withAll
in interfaceMutableDoubleCollection
- Specified by:
withAll
in interfaceMutableDoubleSet
- Overrides:
withAll
in classAbstractUnmodifiableDoubleCollection
-
withoutAll
public UnmodifiableDoubleSet withoutAll(DoubleIterable elements)
- Specified by:
withoutAll
in interfaceMutableDoubleCollection
- Specified by:
withoutAll
in interfaceMutableDoubleSet
- Overrides:
withoutAll
in classAbstractUnmodifiableDoubleCollection
-
select
public MutableDoubleSet select(DoublePredicate predicate)
- Specified by:
select
in interfaceDoubleIterable
- Specified by:
select
in interfaceDoubleSet
- Specified by:
select
in interfaceMutableDoubleCollection
- Specified by:
select
in interfaceMutableDoubleSet
- Overrides:
select
in classAbstractUnmodifiableDoubleCollection
-
reject
public MutableDoubleSet reject(DoublePredicate predicate)
- Specified by:
reject
in interfaceDoubleIterable
- Specified by:
reject
in interfaceDoubleSet
- Specified by:
reject
in interfaceMutableDoubleCollection
- Specified by:
reject
in interfaceMutableDoubleSet
- Overrides:
reject
in classAbstractUnmodifiableDoubleCollection
-
collect
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceDoubleIterable
- Specified by:
collect
in interfaceDoubleSet
- Specified by:
collect
in interfaceMutableDoubleCollection
- Specified by:
collect
in interfaceMutableDoubleSet
- Overrides:
collect
in classAbstractUnmodifiableDoubleCollection
-
cartesianProduct
public LazyIterable<DoubleDoublePair> cartesianProduct(DoubleSet set)
- Specified by:
cartesianProduct
in interfaceDoubleSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableDoubleSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableDoubleCollection
- Specified by:
asUnmodifiable
in interfaceMutableDoubleSet
- Overrides:
asUnmodifiable
in classAbstractUnmodifiableDoubleCollection
-
asSynchronized
public MutableDoubleSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableDoubleCollection
- Specified by:
asSynchronized
in interfaceMutableDoubleSet
- Overrides:
asSynchronized
in classAbstractUnmodifiableDoubleCollection
-
freeze
public DoubleSet freeze()
- Specified by:
freeze
in interfaceDoubleSet
- Specified by:
freeze
in interfaceMutableDoubleSet
-
toImmutable
public ImmutableDoubleSet toImmutable()
- Specified by:
toImmutable
in interfaceDoubleSet
- Specified by:
toImmutable
in interfaceMutableDoubleCollection
- Specified by:
toImmutable
in interfaceMutableDoubleSet
- Overrides:
toImmutable
in classAbstractUnmodifiableDoubleCollection
-
newEmpty
public MutableDoubleSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableDoubleCollection
- Specified by:
newEmpty
in interfaceMutableDoubleSet
- Since:
- 9.2.
-
-