Top Description Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class SynchronizedByteSet

extends AbstractSynchronizedByteCollection
implements MutableByteSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableByteSet, org.eclipse.collections.api.set.primitive.ByteSet, org.eclipse.collections.api.ByteIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableByteCollection
Imports
java.util.Collection, .Collections, org.eclipse.collections.api.ByteIterable, .LazyByteIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.ByteToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.BytePredicate, org.eclipse.collections.api.iterator.ByteIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableByteSet, .ByteSet, .MutableByteSet, org.eclipse.collections.api.tuple.primitive.ByteBytePair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection, org.eclipse.collections.impl.lazy.primitive.LazyByteIterableAdapter, org.eclipse.collections.impl.factory.primitive.ByteSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

A synchronized view of a MutableByteSet. It is imperative that the user manually synchronize on the collection when iterating over it using the ByteIterator, as per Collections#synchronizedCollection(Collection).

This file was automatically generated from template file synchronizedPrimitiveSet.stg.

Since
3.1.
See Also
MutableByteSet#asSynchronized(), MutableSet#asSynchronized()

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public LazyByteIterable
public MutableByteSet
public MutableByteSet
public MutableSet<Byte>
public LazyIterable<ByteBytePair>
cartesianProduct(ByteSet set)

Implements org.eclipse.collections.api.set.primitive.ByteSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

public <V> MutableSet<V>
public boolean
equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.ByteSet.equals.

Follows the same general contract as Set#equals(Object).

public ByteSet
freeze()

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.freeze.

Returns a frozen copy of this set.

private MutableByteSet
public int
public MutableByteSet
public static SynchronizedByteSet
of(MutableByteSet set)

This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.

public static SynchronizedByteSet
of(MutableByteSet set, Object lock)

This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.

public MutableByteSet
public MutableByteSet
public ImmutableByteSet
public SynchronizedByteSet
public SynchronizedByteSet
public SynchronizedByteSet
public SynchronizedByteSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragebyteIteratorchunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetByteCollectiongetLockinjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.serialVersionUID.

Constructor Detail

SynchronizedByteSetback to summary
public SynchronizedByteSet(MutableByteSet set)
SynchronizedByteSetback to summary
public SynchronizedByteSet(MutableByteSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyByteIterable asLazy()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.asLazy.

Implements org.eclipse.collections.api.ByteIterable.asLazy.

Doc from org.eclipse.collections.api.ByteIterable.asLazy.

Returns a LazyByteIterable adapter wrapping the source ByteIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableByteSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.asSynchronized.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableByteCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableByteSet asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.asUnmodifiable.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableByteCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Byte> boxed()

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.boxed.

Annotations
@Override
cartesianProductback to summary
public LazyIterable<ByteBytePair> cartesianProduct(ByteSet set)

Implements org.eclipse.collections.api.set.primitive.ByteSet.cartesianProduct.

Doc from org.eclipse.collections.api.set.primitive.ByteSet.cartesianProduct.

Returns the set whose members are all possible ordered pairs (a, b) where a is a member of this and b is a member of set.

Annotations
@Override
collectback to summary
public <V> MutableSet<V> collect(ByteToObjectFunction<? extends V> function)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.collect.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.collect, org.eclipse.collections.api.collection.primitive.MutableByteCollection.collect.

Doc from org.eclipse.collections.api.ByteIterable.collect.

Returns 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.

Annotations
@Override
equalsback to summary
public boolean equals(Object otherSet)

Overrides java.lang.Object.equals.

Implements org.eclipse.collections.api.set.primitive.ByteSet.equals.

Doc from org.eclipse.collections.api.set.primitive.ByteSet.equals.

Follows the same general contract as Set#equals(Object).

Annotations
@Override
freezeback to summary
public ByteSet freeze()

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.freeze.

Doc from org.eclipse.collections.api.set.primitive.MutableByteSet.freeze.

Returns a frozen copy of this set. A frozen copy is the same thing as an immutable copy without safe-publish guarantees.

getMutableByteSetback to summary
private MutableByteSet getMutableByteSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

Implements org.eclipse.collections.api.set.primitive.ByteSet.hashCode.

Doc from org.eclipse.collections.api.set.primitive.ByteSet.hashCode.

Follows the same general contract as Set#hashCode().

Annotations
@Override
newEmptyback to summary
public MutableByteSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableByteSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableByteCollection.newEmpty.

Doc from org.eclipse.collections.api.set.primitive.MutableByteSet.newEmpty.

Creates a new empty mutable version of the same Set type.

Since
9.2.
ofback to summary
public static SynchronizedByteSet of(MutableByteSet set)

This method will take a MutableByteSet and wrap it directly in a SynchronizedByteSet.

ofback to summary
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.

rejectback to summary
public MutableByteSet reject(BytePredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.reject.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.reject, org.eclipse.collections.api.collection.primitive.MutableByteCollection.reject.

Doc from org.eclipse.collections.api.ByteIterable.reject.

Returns a new ByteIterable with all of the elements in the ByteIterable that return false for the specified predicate.

Annotations
@Override
selectback to summary
public MutableByteSet select(BytePredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.select.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.select, org.eclipse.collections.api.collection.primitive.MutableByteCollection.select.

Doc from org.eclipse.collections.api.ByteIterable.select.

Returns a new ByteIterable with all of the elements in the ByteIterable that return true for the specified predicate.

Annotations
@Override
toImmutableback to summary
public ImmutableByteSet toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.toImmutable.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableByteCollection.toImmutable.

Doc from org.eclipse.collections.api.set.primitive.MutableByteSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedByteSet with(byte element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.with.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.with, org.eclipse.collections.api.collection.primitive.MutableByteCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedByteSet withAll(ByteIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.withAll.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.withAll, org.eclipse.collections.api.collection.primitive.MutableByteCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedByteSet without(byte element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.without.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.without, org.eclipse.collections.api.collection.primitive.MutableByteCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedByteSet withoutAll(ByteIterable elements)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedByteCollection.withoutAll.

Implements org.eclipse.collections.api.set.primitive.MutableByteSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableByteCollection.withoutAll.

Annotations
@Override