ImmutableIntCollection
, IntIterable
, PrimitiveIterable
, ImmutableIntSet
, IntSet
public abstract class AbstractImmutableIntSet extends AbstractIntSet implements ImmutableIntSet
Constructor | Description |
---|---|
AbstractImmutableIntSet() |
Modifier and Type | Method | Description |
---|---|---|
RichIterable<IntIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
IntSet |
freeze() |
Returns a frozen copy of this set.
|
ImmutableIntSet |
newWith(int element) |
|
ImmutableIntSet |
newWithAll(IntIterable elements) |
|
ImmutableIntSet |
newWithout(int element) |
|
ImmutableIntSet |
newWithoutAll(IntIterable elements) |
|
ImmutableIntSet |
toImmutable() |
Returns an immutable copy of this set.
|
asLazy, average, containsAll, containsAll, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
equals, hashCode
collect, reject, select, tap
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, intIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public ImmutableIntSet newWith(int element)
newWith
in interface ImmutableIntCollection
newWith
in interface ImmutableIntSet
public ImmutableIntSet newWithout(int element)
newWithout
in interface ImmutableIntCollection
newWithout
in interface ImmutableIntSet
public ImmutableIntSet newWithAll(IntIterable elements)
newWithAll
in interface ImmutableIntCollection
newWithAll
in interface ImmutableIntSet
public ImmutableIntSet newWithoutAll(IntIterable elements)
newWithoutAll
in interface ImmutableIntCollection
newWithoutAll
in interface ImmutableIntSet
public IntSet freeze()
IntSet
public ImmutableIntSet toImmutable()
IntSet
toImmutable
in interface IntSet
public RichIterable<IntIterable> chunk(int size)
IntIterable
chunk
in interface IntIterable
size
- the number of elements per chunkRichIterable
containing IntIterable
s of size size
, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2019. All rights reserved.