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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UnmodifiableByteSet(MutableByteSet set)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MutableByteSetasSynchronized()MutableByteSetasUnmodifiable()MutableSet<Byte>boxed()LazyIterable<ByteBytePair>cartesianProduct(ByteSet set)<V> MutableSet<V>collect(ByteToObjectFunction<? extends V> function)booleanequals(Object otherSet)ByteSetfreeze()inthashCode()MutableByteSetnewEmpty()static UnmodifiableByteSetof(MutableByteSet set)This method will take a MutableByteSet and wrap it directly in a UnmodifiableByteSet.MutableByteSetreject(BytePredicate predicate)MutableByteSetselect(BytePredicate predicate)ImmutableByteSettoImmutable()UnmodifiableByteSetwith(byte element)UnmodifiableByteSetwithAll(ByteIterable elements)UnmodifiableByteSetwithout(byte element)UnmodifiableByteSetwithoutAll(ByteIterable elements)-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableByteCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, asLazy, average, byteIterator, chunk, clear, contains, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, count, detectIfNone, each, 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, toString
-
Methods inherited from interface org.eclipse.collections.api.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, toSortedListBy
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.ByteSet
isProperSubsetOf, isSubsetOf
-
Methods inherited from interface org.eclipse.collections.api.collection.primitive.MutableByteCollection
add, addAll, addAll, byteIterator, clear, remove, removeAll, removeAll, removeIf, retainAll, retainAll
-
Methods inherited from interface org.eclipse.collections.api.set.primitive.MutableByteSet
difference, intersect, symmetricDifference, tap, union
-
Methods inherited from interface org.eclipse.collections.api.PrimitiveIterable
appendString, appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, size, toString
-
-
-
-
Constructor Detail
-
UnmodifiableByteSet
public UnmodifiableByteSet(MutableByteSet set)
-
-
Method Detail
-
of
public static UnmodifiableByteSet of(MutableByteSet set)
This method will take a MutableByteSet and wrap it directly in a UnmodifiableByteSet.
-
with
public UnmodifiableByteSet with(byte element)
- Specified by:
within interfaceMutableByteCollection- Specified by:
within interfaceMutableByteSet- Overrides:
within classAbstractUnmodifiableByteCollection
-
boxed
public MutableSet<Byte> boxed()
- Specified by:
boxedin interfaceMutableByteSet
-
without
public UnmodifiableByteSet without(byte element)
- Specified by:
withoutin interfaceMutableByteCollection- Specified by:
withoutin interfaceMutableByteSet- Overrides:
withoutin classAbstractUnmodifiableByteCollection
-
withAll
public UnmodifiableByteSet withAll(ByteIterable elements)
- Specified by:
withAllin interfaceMutableByteCollection- Specified by:
withAllin interfaceMutableByteSet- Overrides:
withAllin classAbstractUnmodifiableByteCollection
-
withoutAll
public UnmodifiableByteSet withoutAll(ByteIterable elements)
- Specified by:
withoutAllin interfaceMutableByteCollection- Specified by:
withoutAllin interfaceMutableByteSet- Overrides:
withoutAllin classAbstractUnmodifiableByteCollection
-
select
public MutableByteSet select(BytePredicate predicate)
- Specified by:
selectin interfaceByteIterable- Specified by:
selectin interfaceByteSet- Specified by:
selectin interfaceMutableByteCollection- Specified by:
selectin interfaceMutableByteSet- Overrides:
selectin classAbstractUnmodifiableByteCollection
-
reject
public MutableByteSet reject(BytePredicate predicate)
- Specified by:
rejectin interfaceByteIterable- Specified by:
rejectin interfaceByteSet- Specified by:
rejectin interfaceMutableByteCollection- Specified by:
rejectin interfaceMutableByteSet- Overrides:
rejectin classAbstractUnmodifiableByteCollection
-
collect
public <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collectin interfaceByteIterable- Specified by:
collectin interfaceByteSet- Specified by:
collectin interfaceMutableByteCollection- Specified by:
collectin interfaceMutableByteSet- Overrides:
collectin classAbstractUnmodifiableByteCollection
-
cartesianProduct
public LazyIterable<ByteBytePair> cartesianProduct(ByteSet set)
- Specified by:
cartesianProductin interfaceByteSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asUnmodifiable
public MutableByteSet asUnmodifiable()
- Specified by:
asUnmodifiablein interfaceMutableByteCollection- Specified by:
asUnmodifiablein interfaceMutableByteSet- Overrides:
asUnmodifiablein classAbstractUnmodifiableByteCollection
-
asSynchronized
public MutableByteSet asSynchronized()
- Specified by:
asSynchronizedin interfaceMutableByteCollection- Specified by:
asSynchronizedin interfaceMutableByteSet- Overrides:
asSynchronizedin classAbstractUnmodifiableByteCollection
-
freeze
public ByteSet freeze()
- Specified by:
freezein interfaceByteSet- Specified by:
freezein interfaceMutableByteSet
-
toImmutable
public ImmutableByteSet toImmutable()
- Specified by:
toImmutablein interfaceByteSet- Specified by:
toImmutablein interfaceMutableByteCollection- Specified by:
toImmutablein interfaceMutableByteSet- Overrides:
toImmutablein classAbstractUnmodifiableByteCollection
-
newEmpty
public MutableByteSet newEmpty()
- Specified by:
newEmptyin interfaceMutableByteCollection- Specified by:
newEmptyin interfaceMutableByteSet- Since:
- 9.2.
-
-