ImmutableLongCollection, LongIterable, PrimitiveIterable, ImmutableLongSet, LongSetpublic abstract class AbstractImmutableLongSet extends AbstractLongSet implements ImmutableLongSet
| Constructor | Description |
|---|---|
AbstractImmutableLongSet() |
| Modifier and Type | Method | Description |
|---|---|---|
RichIterable<LongIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
LongSet |
freeze() |
Returns a frozen copy of this set.
|
ImmutableLongSet |
newWith(long element) |
|
ImmutableLongSet |
newWithAll(LongIterable elements) |
|
ImmutableLongSet |
newWithout(long element) |
|
ImmutableLongSet |
newWithoutAll(LongIterable elements) |
|
ImmutableLongSet |
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, longIterator, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedListappendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toStringpublic ImmutableLongSet newWith(long element)
newWith in interface ImmutableLongCollectionnewWith in interface ImmutableLongSetpublic ImmutableLongSet newWithout(long element)
newWithout in interface ImmutableLongCollectionnewWithout in interface ImmutableLongSetpublic ImmutableLongSet newWithAll(LongIterable elements)
newWithAll in interface ImmutableLongCollectionnewWithAll in interface ImmutableLongSetpublic ImmutableLongSet newWithoutAll(LongIterable elements)
newWithoutAll in interface ImmutableLongCollectionnewWithoutAll in interface ImmutableLongSetpublic LongSet freeze()
LongSetpublic ImmutableLongSet toImmutable()
LongSettoImmutable in interface LongSetpublic RichIterable<LongIterable> chunk(int size)
LongIterablechunk in interface LongIterablesize - the number of elements per chunkRichIterable containing LongIterables of size size, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2018. All rights reserved.