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
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
Modifier and Type Method Description RichIterable<DoubleIterable>
chunk(int size)
Partitions elements in fixed size chunks.DoubleSet
freeze()
Returns a frozen copy of this set.ImmutableDoubleSet
newWith(double element)
ImmutableDoubleSet
newWithAll(DoubleIterable elements)
ImmutableDoubleSet
newWithout(double element)
ImmutableDoubleSet
newWithoutAll(DoubleIterable elements)
ImmutableDoubleSet
toImmutable()
Returns an immutable copy of this set.Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractDoubleSet
equals, hashCode
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractDoubleIterable
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
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, count, detectIfNone, doubleIterator, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList
Methods inherited from interface org.eclipse.collections.api.set.primitive.DoubleSet
collect, equals, hashCode, reject, select, tap
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableDoubleSet
collect, reject, select, tap
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
AbstractImmutableDoubleSet
public AbstractImmutableDoubleSet()
-
-
Method Details
-
newWith
- Specified by:
newWith
in interfaceImmutableDoubleCollection
- Specified by:
newWith
in interfaceImmutableDoubleSet
-
newWithout
- Specified by:
newWithout
in interfaceImmutableDoubleCollection
- Specified by:
newWithout
in interfaceImmutableDoubleSet
-
newWithAll
- Specified by:
newWithAll
in interfaceImmutableDoubleCollection
- Specified by:
newWithAll
in interfaceImmutableDoubleSet
-
newWithoutAll
- Specified by:
newWithoutAll
in interfaceImmutableDoubleCollection
- Specified by:
newWithoutAll
in interfaceImmutableDoubleSet
-
freeze
Description copied from interface:DoubleSet
Returns 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
Description copied from interface:DoubleSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceDoubleSet
-
chunk
Description copied from interface:DoubleIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceDoubleIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingDoubleIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-