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
This file was automatically generated from template file abstractImmutablePrimitiveSet.stg.
- Since:
- 6.0.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchunk(int size) Partitions elements in fixed size chunks.freeze()Returns a frozen copy of this set.newWith(byte element) newWithAll(ByteIterable elements) newWithout(byte element) newWithoutAll(ByteIterable elements) Returns an immutable copy of this set.Methods inherited from class AbstractByteSet
cartesianProduct, equals, hashCodeMethods inherited from class AbstractByteIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface 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, toSortedListByMethods inherited from interface ByteSet
cartesianProduct, collect, equals, hashCode, isProperSubsetOf, isSubsetOf, reject, select, tapMethods inherited from interface ImmutableByteSet
collect, difference, intersect, reject, select, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Constructor Details
-
AbstractImmutableByteSet
public AbstractImmutableByteSet()
-
-
Method Details
-
newWith
- Specified by:
newWithin interfaceImmutableByteCollection- Specified by:
newWithin interfaceImmutableByteSet
-
newWithout
- Specified by:
newWithoutin interfaceImmutableByteCollection- Specified by:
newWithoutin interfaceImmutableByteSet
-
newWithAll
- Specified by:
newWithAllin interfaceImmutableByteCollection- Specified by:
newWithAllin interfaceImmutableByteSet
-
newWithoutAll
- Specified by:
newWithoutAllin interfaceImmutableByteCollection- Specified by:
newWithoutAllin interfaceImmutableByteSet
-
freeze
-
toImmutable
Description copied from interface:ByteSetReturns an immutable copy of this set. If the set is immutable, it returns itself.- Specified by:
toImmutablein interfaceByteSet
-
chunk
Description copied from interface:ByteIterablePartitions elements in fixed size chunks.- Specified by:
chunkin interfaceByteIterable- Parameters:
size- the number of elements per chunk- Returns:
- A
RichIterablecontainingByteIterables of sizesize, except the last will be truncated if the elements don't divide evenly.
-