Class UnmodifiableDoubleSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableDoubleCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableDoubleSet
-
- All Implemented Interfaces:
java.io.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
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description UnmodifiableDoubleSet(MutableDoubleSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableDoubleSetasSynchronized()MutableDoubleSetasUnmodifiable()MutableSet<java.lang.Double>boxed()LazyIterable<DoubleDoublePair>cartesianProduct(DoubleSet set)Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<V> MutableSet<V>collect(DoubleToObjectFunction<? extends V> function)Returns a new collection with the results of applying the specified function on each element of the source collection.booleanequals(java.lang.Object otherSet)Follows the same general contract asSet.equals(Object).DoubleSetfreeze()Returns a frozen copy of this set.private MutableDoubleSetgetMutableDoubleSet()inthashCode()Follows the same general contract asSet.hashCode().MutableDoubleSetnewEmpty()Creates a new empty mutable version of the same Set type.static UnmodifiableDoubleSetof(MutableDoubleSet set)This method will take a MutableDoubleSet and wrap it directly in a UnmodifiableDoubleSet.MutableDoubleSetreject(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.MutableDoubleSetselect(DoublePredicate predicate)Returns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.ImmutableDoubleSettoImmutable()Returns an immutable copy of this set.UnmodifiableDoubleSetwith(double element)UnmodifiableDoubleSetwithAll(DoubleIterable elements)UnmodifiableDoubleSetwithout(double element)UnmodifiableDoubleSetwithoutAll(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, getDoubleCollection, 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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
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
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
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.
-
getMutableDoubleSet
private MutableDoubleSet getMutableDoubleSet()
-
with
public UnmodifiableDoubleSet with(double element)
- Specified by:
within interfaceMutableDoubleCollection- Specified by:
within interfaceMutableDoubleSet- Overrides:
within classAbstractUnmodifiableDoubleCollection
-
boxed
public MutableSet<java.lang.Double> boxed()
- Specified by:
boxedin interfaceMutableDoubleSet
-
without
public UnmodifiableDoubleSet without(double element)
- Specified by:
withoutin interfaceMutableDoubleCollection- Specified by:
withoutin interfaceMutableDoubleSet- Overrides:
withoutin classAbstractUnmodifiableDoubleCollection
-
withAll
public UnmodifiableDoubleSet withAll(DoubleIterable elements)
- Specified by:
withAllin interfaceMutableDoubleCollection- Specified by:
withAllin interfaceMutableDoubleSet- Overrides:
withAllin classAbstractUnmodifiableDoubleCollection
-
withoutAll
public UnmodifiableDoubleSet withoutAll(DoubleIterable elements)
- Specified by:
withoutAllin interfaceMutableDoubleCollection- Specified by:
withoutAllin interfaceMutableDoubleSet- Overrides:
withoutAllin classAbstractUnmodifiableDoubleCollection
-
select
public MutableDoubleSet select(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return true for the specified predicate.- Specified by:
selectin interfaceDoubleIterable- Specified by:
selectin interfaceDoubleSet- Specified by:
selectin interfaceMutableDoubleCollection- Specified by:
selectin interfaceMutableDoubleSet- Overrides:
selectin classAbstractUnmodifiableDoubleCollection
-
reject
public MutableDoubleSet reject(DoublePredicate predicate)
Description copied from interface:DoubleIterableReturns a new DoubleIterable with all of the elements in the DoubleIterable that return false for the specified predicate.- Specified by:
rejectin interfaceDoubleIterable- Specified by:
rejectin interfaceDoubleSet- Specified by:
rejectin interfaceMutableDoubleCollection- Specified by:
rejectin interfaceMutableDoubleSet- Overrides:
rejectin classAbstractUnmodifiableDoubleCollection
-
collect
public <V> MutableSet<V> collect(DoubleToObjectFunction<? extends V> function)
Description copied from interface:DoubleIterableReturns 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.- Specified by:
collectin interfaceDoubleIterable- Specified by:
collectin interfaceDoubleSet- Specified by:
collectin interfaceMutableDoubleCollection- Specified by:
collectin interfaceMutableDoubleSet- Overrides:
collectin classAbstractUnmodifiableDoubleCollection
-
cartesianProduct
public LazyIterable<DoubleDoublePair> cartesianProduct(DoubleSet set)
Description copied from interface:DoubleSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceDoubleSet
-
equals
public boolean equals(java.lang.Object otherSet)
Description copied from interface:DoubleSetFollows the same general contract asSet.equals(Object).
-
hashCode
public int hashCode()
Description copied from interface:DoubleSetFollows the same general contract asSet.hashCode().
-
asUnmodifiable
public MutableDoubleSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableDoubleCollection- Specified by:
asUnmodifiablein interfaceMutableDoubleSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableDoubleCollection
-
asSynchronized
public MutableDoubleSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableDoubleCollection- Specified by:
asSynchronizedin interfaceMutableDoubleSet- Overrides:
asSynchronizedin classAbstractUnmodifiableDoubleCollection
-
freeze
public DoubleSet freeze()
Description copied from interface:MutableDoubleSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceDoubleSet- Specified by:
freezein interfaceMutableDoubleSet
-
toImmutable
public ImmutableDoubleSet toImmutable()
Description copied from interface:MutableDoubleSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceDoubleSet- Specified by:
toImmutablein interfaceMutableDoubleCollection- Specified by:
toImmutablein interfaceMutableDoubleSet- Overrides:
toImmutablein classAbstractUnmodifiableDoubleCollection
-
newEmpty
public MutableDoubleSet newEmpty()
Description copied from interface:MutableDoubleSetCreates a new empty mutable version of the same Set type.- Specified by:
newEmptyin interfaceMutableDoubleCollection- Specified by:
newEmptyin interfaceMutableDoubleSet- Since:
- 9.2.
-
-