Class AbstractImmutableByteSet
- java.lang.Object
-
- org.eclipse.collections.impl.primitive.AbstractByteIterable
-
- org.eclipse.collections.impl.set.primitive.AbstractByteSet
-
- org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableByteSet
-
- All Implemented Interfaces:
ByteIterable
,ImmutableByteCollection
,PrimitiveIterable
,ByteSet
,ImmutableByteSet
- Direct Known Subclasses:
ImmutableByteByteMapKeySet
,ImmutableByteMapKeySet
public abstract class AbstractImmutableByteSet extends AbstractByteSet implements ImmutableByteSet
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.- Since:
- 6.0.
-
-
Constructor Summary
Constructors Constructor Description AbstractImmutableByteSet()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.-
Methods inherited from class org.eclipse.collections.impl.set.primitive.AbstractByteSet
cartesianProduct, equals, hashCode
-
Methods inherited from class org.eclipse.collections.impl.primitive.AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.collections.api.ByteIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, byteIterator, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, flatCollect, forEach, injectInto, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, max, maxIfEmpty, median, medianIfEmpty, min, minIfEmpty, noneSatisfy, reduce, reduceIfEmpty, reject, select, sum, summaryStatistics, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ByteSet
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tap
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ImmutableByteSet
collect, difference, intersect, reject, select, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Method Detail
-
newWith
public ImmutableByteSet newWith(byte element)
- Specified by:
newWith
in interfaceImmutableByteCollection
- Specified by:
newWith
in interfaceImmutableByteSet
-
newWithout
public ImmutableByteSet newWithout(byte element)
- Specified by:
newWithout
in interfaceImmutableByteCollection
- Specified by:
newWithout
in interfaceImmutableByteSet
-
newWithAll
public ImmutableByteSet newWithAll(ByteIterable elements)
- Specified by:
newWithAll
in interfaceImmutableByteCollection
- Specified by:
newWithAll
in interfaceImmutableByteSet
-
newWithoutAll
public ImmutableByteSet newWithoutAll(ByteIterable elements)
- Specified by:
newWithoutAll
in interfaceImmutableByteCollection
- Specified by:
newWithoutAll
in interfaceImmutableByteSet
-
freeze
public ByteSet freeze()
Description copied from interface:ByteSet
Returns a frozen copy of this set. If the set is frozen, it returns itself. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.
-
toImmutable
public ImmutableByteSet toImmutable()
Description copied from interface:ByteSet
Returns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutable
in interfaceByteSet
-
chunk
public RichIterable<ByteIterable> chunk(int size)
Description copied from interface:ByteIterable
Partitions elements in fixed size chunks.- Specified by:
chunk
in interfaceByteIterable
- Parameters:
size
- the number of elements per chunk- Returns:
- A
RichIterable
containingByteIterable
s of sizesize
, except the last will be truncated if the elements don't divide evenly.
-
-