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

public Class SynchronizedShortSet

extends AbstractSynchronizedShortCollection
implements MutableShortSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableShortSet, org.eclipse.collections.api.set.primitive.ShortSet, org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableShortCollection
Imports
java.util.Collection, .Collections, org.eclipse.collections.api.ShortIterable, .LazyShortIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.iterator.ShortIterator, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableShortSet, .ShortSet, .MutableShortSet, org.eclipse.collections.api.tuple.primitive.ShortShortPair, org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedShortCollection, org.eclipse.collections.impl.lazy.primitive.LazyShortIterableAdapter, org.eclipse.collections.impl.factory.primitive.ShortSets, org.eclipse.collections.impl.set.mutable.SynchronizedMutableSet

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

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

Since
3.1.
See Also
MutableShortSet#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 LazyShortIterable
public MutableShortSet
public MutableShortSet
public MutableSet<Short>
public LazyIterable<ShortShortPair>
cartesianProduct(ShortSet set)

Implements org.eclipse.collections.api.set.primitive.ShortSet.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.ShortSet.equals.

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

public ShortSet
freeze()

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

Returns a frozen copy of this set.

private MutableShortSet
public int
public MutableShortSet
public static SynchronizedShortSet
of(MutableShortSet set)

This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.

public static SynchronizedShortSet
of(MutableShortSet set, Object lock)

This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.

public MutableShortSet
public MutableShortSet
public ImmutableShortSet
public SynchronizedShortSet
public SynchronizedShortSet
public SynchronizedShortSet
public SynchronizedShortSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractSynchronizedShortCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetLockgetShortCollectioninjectIntoisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllshortIteratorsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

SynchronizedShortSetback to summary
public SynchronizedShortSet(MutableShortSet set)
SynchronizedShortSetback to summary
public SynchronizedShortSet(MutableShortSet set, Object newLock)

Method Detail

asLazyback to summary
public LazyShortIterable asLazy()

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

Implements org.eclipse.collections.api.ShortIterable.asLazy.

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

Returns a LazyShortIterable adapter wrapping the source ShortIterable.

Annotations
@Override
asSynchronizedback to summary
public MutableShortSet asSynchronized()

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableShortCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableShortSet asUnmodifiable()

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableShortCollection.asUnmodifiable.

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

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

Annotations
@Override
cartesianProductback to summary
public LazyIterable<ShortShortPair> cartesianProduct(ShortSet set)

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

Doc from org.eclipse.collections.api.set.primitive.ShortSet.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(ShortToObjectFunction<? extends V> function)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.collect, org.eclipse.collections.api.collection.primitive.MutableShortCollection.collect.

Doc from org.eclipse.collections.api.ShortIterable.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.ShortSet.equals.

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

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

Annotations
@Override
freezeback to summary
public ShortSet freeze()

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

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

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

getMutableShortSetback to summary
private MutableShortSet getMutableShortSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

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

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

Annotations
@Override
newEmptyback to summary
public MutableShortSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableShortSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableShortCollection.newEmpty.

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

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

Since
9.2.
ofback to summary
public static SynchronizedShortSet of(MutableShortSet set)

This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet.

ofback to summary
public static SynchronizedShortSet of(MutableShortSet set, Object lock)

This method will take a MutableShortSet and wrap it directly in a SynchronizedShortSet. Additionally, a developer specifies which lock to use with the collection.

rejectback to summary
public MutableShortSet reject(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.reject, org.eclipse.collections.api.collection.primitive.MutableShortCollection.reject.

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

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

Annotations
@Override
selectback to summary
public MutableShortSet select(ShortPredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.select, org.eclipse.collections.api.collection.primitive.MutableShortCollection.select.

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

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

Annotations
@Override
toImmutableback to summary
public ImmutableShortSet toImmutable()

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableShortCollection.toImmutable.

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

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public SynchronizedShortSet with(short element)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.with, org.eclipse.collections.api.collection.primitive.MutableShortCollection.with.

Annotations
@Override
withAllback to summary
public SynchronizedShortSet withAll(ShortIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.withAll, org.eclipse.collections.api.collection.primitive.MutableShortCollection.withAll.

Annotations
@Override
withoutback to summary
public SynchronizedShortSet without(short element)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.without, org.eclipse.collections.api.collection.primitive.MutableShortCollection.without.

Annotations
@Override
withoutAllback to summary
public SynchronizedShortSet withoutAll(ShortIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableShortSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableShortCollection.withoutAll.

Annotations
@Override