Class SynchronizedByteSet
- java.lang.Object
-
- org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection
-
- org.eclipse.collections.impl.set.mutable.primitive.SynchronizedByteSet
-
- All Implemented Interfaces:
Serializable
,ByteIterable
,MutableByteCollection
,PrimitiveIterable
,ByteSet
,MutableByteSet
public class SynchronizedByteSet extends AbstractSynchronizedByteCollection implements MutableByteSet
A synchronized view of aMutableByteSet
. It is imperative that the user manually synchronize on the collection when iterating over it using theByteIterator
, as perCollections.synchronizedCollection(Collection)
.This file was automatically generated from template file synchronizedPrimitiveSet.stg.
- Since:
- 3.1.
- See Also:
MutableByteSet.asSynchronized()
,MutableSet.asSynchronized()
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SynchronizedByteSet(MutableByteSet set)
SynchronizedByteSet(MutableByteSet set, Object newLock)
-
Method Summary
-
Methods inherited from class org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection
add, addAll, addAll, allSatisfy, anySatisfy, appendString, appendString, appendString, 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, 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
-
SynchronizedByteSet
public SynchronizedByteSet(MutableByteSet set)
-
SynchronizedByteSet
public SynchronizedByteSet(MutableByteSet set, Object newLock)
-
-
Method Detail
-
of
public static SynchronizedByteSet of(MutableByteSet set)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.
-
of
public static SynchronizedByteSet of(MutableByteSet set, Object lock)
This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet. Additionally, a developer specifies which lock to use with the collection.
-
without
public SynchronizedByteSet without(byte element)
- Specified by:
without
in interfaceMutableByteCollection
- Specified by:
without
in interfaceMutableByteSet
- Overrides:
without
in classAbstractSynchronizedByteCollection
-
boxed
public MutableSet<Byte> boxed()
- Specified by:
boxed
in interfaceMutableByteSet
-
with
public SynchronizedByteSet with(byte element)
- Specified by:
with
in interfaceMutableByteCollection
- Specified by:
with
in interfaceMutableByteSet
- Overrides:
with
in classAbstractSynchronizedByteCollection
-
withAll
public SynchronizedByteSet withAll(ByteIterable elements)
- Specified by:
withAll
in interfaceMutableByteCollection
- Specified by:
withAll
in interfaceMutableByteSet
- Overrides:
withAll
in classAbstractSynchronizedByteCollection
-
withoutAll
public SynchronizedByteSet withoutAll(ByteIterable elements)
- Specified by:
withoutAll
in interfaceMutableByteCollection
- Specified by:
withoutAll
in interfaceMutableByteSet
- Overrides:
withoutAll
in classAbstractSynchronizedByteCollection
-
select
public MutableByteSet select(BytePredicate predicate)
- Specified by:
select
in interfaceByteIterable
- Specified by:
select
in interfaceByteSet
- Specified by:
select
in interfaceMutableByteCollection
- Specified by:
select
in interfaceMutableByteSet
- Overrides:
select
in classAbstractSynchronizedByteCollection
-
reject
public MutableByteSet reject(BytePredicate predicate)
- Specified by:
reject
in interfaceByteIterable
- Specified by:
reject
in interfaceByteSet
- Specified by:
reject
in interfaceMutableByteCollection
- Specified by:
reject
in interfaceMutableByteSet
- Overrides:
reject
in classAbstractSynchronizedByteCollection
-
collect
public <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)
- Specified by:
collect
in interfaceByteIterable
- Specified by:
collect
in interfaceByteSet
- Specified by:
collect
in interfaceMutableByteCollection
- Specified by:
collect
in interfaceMutableByteSet
- Overrides:
collect
in classAbstractSynchronizedByteCollection
-
cartesianProduct
public LazyIterable<ByteBytePair> cartesianProduct(ByteSet set)
- Specified by:
cartesianProduct
in interfaceByteSet
-
equals
public boolean equals(Object otherSet)
-
hashCode
public int hashCode()
-
asLazy
public LazyByteIterable asLazy()
- Specified by:
asLazy
in interfaceByteIterable
- Overrides:
asLazy
in classAbstractSynchronizedByteCollection
-
asUnmodifiable
public MutableByteSet asUnmodifiable()
- Specified by:
asUnmodifiable
in interfaceMutableByteCollection
- Specified by:
asUnmodifiable
in interfaceMutableByteSet
- Overrides:
asUnmodifiable
in classAbstractSynchronizedByteCollection
-
asSynchronized
public MutableByteSet asSynchronized()
- Specified by:
asSynchronized
in interfaceMutableByteCollection
- Specified by:
asSynchronized
in interfaceMutableByteSet
- Overrides:
asSynchronized
in classAbstractSynchronizedByteCollection
-
freeze
public ByteSet freeze()
- Specified by:
freeze
in interfaceByteSet
- Specified by:
freeze
in interfaceMutableByteSet
-
toImmutable
public ImmutableByteSet toImmutable()
- Specified by:
toImmutable
in interfaceByteSet
- Specified by:
toImmutable
in interfaceMutableByteCollection
- Specified by:
toImmutable
in interfaceMutableByteSet
- Overrides:
toImmutable
in classAbstractSynchronizedByteCollection
-
newEmpty
public MutableByteSet newEmpty()
- Specified by:
newEmpty
in interfaceMutableByteCollection
- Specified by:
newEmpty
in interfaceMutableByteSet
- Since:
- 9.2.
-
-