ByteIterable
, ImmutableByteCollection
, PrimitiveIterable
, ByteSet
, ImmutableByteSet
public abstract class AbstractImmutableByteSet extends AbstractByteSet implements ImmutableByteSet
Constructor | Description |
---|---|
AbstractImmutableByteSet() |
Modifier and Type | Method | Description |
---|---|---|
RichIterable<ByteIterable> |
chunk(int size) |
Partitions elements in fixed size chunks.
|
ByteSet |
freeze() |
Returns a frozen copy of this set.
|
ImmutableByteSet |
newWith(byte element) |
|
ImmutableByteSet |
newWithAll(ByteIterable elements) |
|
ImmutableByteSet |
newWithout(byte element) |
|
ImmutableByteSet |
newWithoutAll(ByteIterable elements) |
|
ImmutableByteSet |
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, byteIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, count, detectIfNone, each, flatCollect, forEach, injectInto, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toBag, toList, toSet, toSortedArray, toSortedList
collect, reject, select, tap
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
public ImmutableByteSet newWith(byte element)
newWith
in interface ImmutableByteCollection
newWith
in interface ImmutableByteSet
public ImmutableByteSet newWithout(byte element)
newWithout
in interface ImmutableByteCollection
newWithout
in interface ImmutableByteSet
public ImmutableByteSet newWithAll(ByteIterable elements)
newWithAll
in interface ImmutableByteCollection
newWithAll
in interface ImmutableByteSet
public ImmutableByteSet newWithoutAll(ByteIterable elements)
newWithoutAll
in interface ImmutableByteCollection
newWithoutAll
in interface ImmutableByteSet
public ByteSet freeze()
ByteSet
public ImmutableByteSet toImmutable()
ByteSet
toImmutable
in interface ByteSet
public RichIterable<ByteIterable> chunk(int size)
ByteIterable
chunk
in interface ByteIterable
size
- the number of elements per chunkRichIterable
containing ByteIterable
s of size size
, except the last will be
truncated if the elements don't divide evenly.Copyright © 2004–2019. All rights reserved.