Class AbstractImmutableDoubleSet
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractDoubleIterable
-
- org.eclipse.collections.impl.set.primitive.AbstractDoubleSet
-
- org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableDoubleSet
-
- All Implemented Interfaces:
ImmutableDoubleCollection,DoubleIterable,PrimitiveIterable,DoubleSet,ImmutableDoubleSet
- Direct Known Subclasses:
DoubleHashSet.ImmutableDoubleHashSet,ImmutableDoubleDoubleMapKeySet,ImmutableDoubleMapKeySet
public abstract class AbstractImmutableDoubleSet extends AbstractDoubleSet implements ImmutableDoubleSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.- Since:
- 6.0.
-
-
Constructor Summary
Constructors Constructor Description AbstractImmutableDoubleSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RichIterable<DoubleIterable>chunk(int size)Partitions elements in fixed size chunks.DoubleSetfreeze()Returns a frozen copy of this set.ImmutableDoubleSetnewWith(double element)ImmutableDoubleSetnewWithAll(DoubleIterable elements)ImmutableDoubleSetnewWithout(double element)ImmutableDoubleSetnewWithoutAll(DoubleIterable elements)ImmutableDoubleSettoImmutable()Returns an immutable copy of this set.-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractDoubleSet
cartesianProduct, equals, hashCode
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, 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, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, doubleIterator, 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
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tap
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableDoubleSet
collect, difference, intersect, reject, select, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
newWith
public ImmutableDoubleSet newWith(double element)
- Specified by:
newWithin interfaceImmutableDoubleCollection- Specified by:
newWithin interfaceImmutableDoubleSet
-
newWithout
public ImmutableDoubleSet newWithout(double element)
- Specified by:
newWithoutin interfaceImmutableDoubleCollection- Specified by:
newWithoutin interfaceImmutableDoubleSet
-
newWithAll
public ImmutableDoubleSet newWithAll(DoubleIterable elements)
- Specified by:
newWithAllin interfaceImmutableDoubleCollection- Specified by:
newWithAllin interfaceImmutableDoubleSet
-
newWithoutAll
public ImmutableDoubleSet newWithoutAll(DoubleIterable elements)
- Specified by:
newWithoutAllin interfaceImmutableDoubleCollection- Specified by:
newWithoutAllin interfaceImmutableDoubleSet
-
freeze
public DoubleSet freeze()
Description copied from interface:DoubleSetReturns a frozen copy of this set. If the set is frozen, it returns itself. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.
-
toImmutable
public ImmutableDoubleSet toImmutable()
Description copied from interface:DoubleSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceDoubleSet
-
chunk
public RichIterable<DoubleIterable> chunk(int size)
Description copied from interface:DoubleIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceDoubleIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingDoubleIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-
-