ImmutableIntCollection, IntIterable, PrimitiveIterable, ImmutableIntSet, IntSetpublic 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, toStringequals, hashCodecollect, reject, select, tapallSatisfy, 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, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic ImmutableIntSet newWith(int element)
newWith in interface ImmutableIntCollectionnewWith in interface ImmutableIntSetpublic ImmutableIntSet newWithout(int element)
newWithout in interface ImmutableIntCollectionnewWithout in interface ImmutableIntSetpublic ImmutableIntSet newWithAll(IntIterable elements)
newWithAll in interface ImmutableIntCollectionnewWithAll in interface ImmutableIntSetpublic ImmutableIntSet newWithoutAll(IntIterable elements)
newWithoutAll in interface ImmutableIntCollectionnewWithoutAll in interface ImmutableIntSetpublic IntSet freeze()
IntSetpublic ImmutableIntSet toImmutable()
IntSettoImmutable in interface IntSetpublic RichIterable<IntIterable> chunk(int size)
IntIterablechunk in interface IntIterablesize - the number of elements per chunkRichIterable containing IntIterables of size size, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2019. All rights reserved.