ImmutableDoubleCollection
, DoubleIterable
, PrimitiveIterable
, DoubleSet
, ImmutableDoubleSet
public abstract class AbstractImmutableDoubleSet extends AbstractDoubleSet implements ImmutableDoubleSet
Constructor | Description |
---|---|
AbstractImmutableDoubleSet() |
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.
|
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, hashCode
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, toBag, toList, toSet, toSortedArray, toSortedList
equals, hashCode
collect, reject, select, tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public ImmutableDoubleSet newWith(double element)
newWith
in interface ImmutableDoubleCollection
newWith
in interface ImmutableDoubleSet
public ImmutableDoubleSet newWithout(double element)
newWithout
in interface ImmutableDoubleCollection
newWithout
in interface ImmutableDoubleSet
public ImmutableDoubleSet newWithAll(DoubleIterable elements)
newWithAll
in interface ImmutableDoubleCollection
newWithAll
in interface ImmutableDoubleSet
public ImmutableDoubleSet newWithoutAll(DoubleIterable elements)
newWithoutAll
in interface ImmutableDoubleCollection
newWithoutAll
in interface ImmutableDoubleSet
public DoubleSet freeze()
DoubleSet
public ImmutableDoubleSet toImmutable()
DoubleSet
toImmutable
in interface DoubleSet
public RichIterable<DoubleIterable> chunk(int size)
DoubleIterable
chunk
in interface DoubleIterable
size
- the number of elements per chunkRichIterable
containing DoubleIterable
s of size size
, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2019. All rights reserved.