ImmutableFloatCollection
, FloatIterable
, PrimitiveIterable
, FloatSet
, ImmutableFloatSet
public abstract class AbstractImmutableFloatSet extends AbstractFloatSet implements ImmutableFloatSet
Constructor | Description |
---|---|
AbstractImmutableFloatSet() |
Modifier and Type | Method | Description |
---|---|---|
RichIterable<FloatIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
FloatSet |
freeze() |
Returns a frozen copy of this set.
|
ImmutableFloatSet |
newWith(float element) |
|
ImmutableFloatSet |
newWithAll(FloatIterable elements) |
|
ImmutableFloatSet |
newWithout(float element) |
|
ImmutableFloatSet |
newWithoutAll(FloatIterable elements) |
|
ImmutableFloatSet |
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, each, flatCollect, floatIterator, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, 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 ImmutableFloatSet newWith(float element)
newWith
in interface ImmutableFloatCollection
newWith
in interface ImmutableFloatSet
public ImmutableFloatSet newWithout(float element)
newWithout
in interface ImmutableFloatCollection
newWithout
in interface ImmutableFloatSet
public ImmutableFloatSet newWithAll(FloatIterable elements)
newWithAll
in interface ImmutableFloatCollection
newWithAll
in interface ImmutableFloatSet
public ImmutableFloatSet newWithoutAll(FloatIterable elements)
newWithoutAll
in interface ImmutableFloatCollection
newWithoutAll
in interface ImmutableFloatSet
public FloatSet freeze()
FloatSet
public ImmutableFloatSet toImmutable()
FloatSet
toImmutable
in interface FloatSet
public RichIterable<FloatIterable> chunk(int size)
FloatIterable
chunk
in interface FloatIterable
size
- the number of elements per chunkRichIterable
containing FloatIterable
s of size size
, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2018. All rights reserved.