Class UnmodifiableByteSet
java.lang.Object
org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
org.eclipse.collections.impl.set.mutable.primitive.UnmodifiableByteSet
- All Implemented Interfaces:
Serializable, ByteIterable, MutableByteCollection, PrimitiveIterable, ByteSet, MutableByteSet
public class UnmodifiableByteSet
extends AbstractUnmodifiableByteCollection
implements MutableByteSet
This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboxed()cartesianProduct(ByteSet set) Returns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.<V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function) Returns a new collection with the results of applying the specified function on each element of the source collection.booleanFollows the same general contract asSet.equals(Object).freeze()Returns a frozen copy of this set.private MutableByteSetinthashCode()Follows the same general contract asSet.hashCode().newEmpty()Creates a new empty mutable version of the same collection type.static UnmodifiableByteSetof(MutableByteSet set) This method will take a MutableByteSet and wrap it directly in a UnmodifiableByteSet.reject(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.select(BytePredicate predicate) Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.Returns an immutable copy of this set.with(byte element) withAll(ByteIterable elements) without(byte element) withoutAll(ByteIterable elements) Methods inherited from class AbstractUnmodifiableByteCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, getByteCollection, injectInto, isEmpty, makeString, makeString, makeString, max, maxIfEmpty, median, min, minIfEmpty, noneSatisfy, notEmpty, reduce, reduceIfEmpty, remove, removeAll, removeAll, removeIf, retainAll, retainAll, size, sum, toArray, toArray, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface ByteIterable
allSatisfy, anySatisfy, asLazy, average, averageIfEmpty, chunk, 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
isProperSubsetOf, isSubsetOfMethods inherited from interface MutableByteCollection
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAllMethods inherited from interface MutableByteSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
UnmodifiableByteSet
-
-
Method Details
-
of
This method will take a MutableByteSet and wrap it directly in a UnmodifiableByteSet. -
getMutableByteSet
-
with
- Specified by:
within interfaceMutableByteCollection- Specified by:
within interfaceMutableByteSet- Overrides:
within classAbstractUnmodifiableByteCollection
-
boxed
- Specified by:
boxedin interfaceMutableByteSet
-
without
- Specified by:
withoutin interfaceMutableByteCollection- Specified by:
withoutin interfaceMutableByteSet- Overrides:
withoutin classAbstractUnmodifiableByteCollection
-
withAll
- Specified by:
withAllin interfaceMutableByteCollection- Specified by:
withAllin interfaceMutableByteSet- Overrides:
withAllin classAbstractUnmodifiableByteCollection
-
withoutAll
- Specified by:
withoutAllin interfaceMutableByteCollection- Specified by:
withoutAllin interfaceMutableByteSet- Overrides:
withoutAllin classAbstractUnmodifiableByteCollection
-
select
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteSet- Specified by:
selectin interfaceMutableByteCollection- Specified by:
selectin interfaceMutableByteSet- Overrides:
selectin classAbstractUnmodifiableByteCollection
-
reject
Description copied from interface:ByteIterableReturns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteSet- Specified by:
rejectin interfaceMutableByteCollection- Specified by:
rejectin interfaceMutableByteSet- Overrides:
rejectin classAbstractUnmodifiableByteCollection
-
collect
Description copied from interface:ByteIterableReturns a new collection with the results of applying the specified function on each element of the source collection. This method is also commonly called transform or map.- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteSet- Specified by:
collectin interfaceMutableByteCollection- Specified by:
collectin interfaceMutableByteSet- Overrides:
collectin classAbstractUnmodifiableByteCollection
-
cartesianProduct
Description copied from interface:ByteSetReturns the set whose members are all possible ordered pairs (a, b) where a is a member ofthisand b is a member ofset.- Specified by:
cartesianProductin interfaceByteSet
-
equals
-
hashCode
-
asUnmodifiable
- Specified by:
asUnmodifiablein interfaceMutableByteCollection- Specified by:
asUnmodifiablein interfaceMutableByteSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableByteCollection
-
asSynchronized
- Specified by:
asSynchronizedin interfaceMutableByteCollection- Specified by:
asSynchronizedin interfaceMutableByteSet- Overrides:
asSynchronizedin classAbstractUnmodifiableByteCollection
-
freeze
Description copied from interface:MutableByteSetReturns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.- Specified by:
freezein interfaceByteSet- Specified by:
freezein interfaceMutableByteSet
-
toImmutable
Description copied from interface:MutableByteSetReturns an immutable copy of this set.- Specified by:
toImmutablein interfaceByteSet- Specified by:
toImmutablein interfaceMutableByteCollection- Specified by:
toImmutablein interfaceMutableByteSet- Overrides:
toImmutablein classAbstractUnmodifiableByteCollection
-
newEmpty
Description copied from interface:MutableByteCollectionCreates a new empty mutable version of the same collection type.- Specified by:
newEmptyin interfaceMutableByteCollection- Specified by:
newEmptyin interfaceMutableByteSet- Since:
- 9.2.
-