Top Description Methods
org.eclipse.collections.api.set.primitive

public Interface MutableShortSet

extends MutableShortCollection, ShortSet
Imports
org.eclipse.collections.api.ShortIterable, org.eclipse.collections.api.block.function.primitive.ShortToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.ShortPredicate, org.eclipse.collections.api.block.procedure.primitive.ShortProcedure, org.eclipse.collections.api.collection.primitive.MutableShortCollection, org.eclipse.collections.api.set.MutableSet

This file was automatically generated from template file mutablePrimitiveSet.stg.
Since
3.0.

Method Summary

Modifier and TypeMethod and Description
public MutableShortSet
public MutableShortSet
public MutableSet<Short>
public <V> MutableSet<V>
collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.collect, org.eclipse.collections.api.set.primitive.ShortSet.collect.

Returns a new collection with the results of applying the specified function on each element of the source collection.

public default MutableShortSet
difference(ShortSet set)

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

Returns the set of all members of this that are not members of set.

public ShortSet
freeze()

Redeclares org.eclipse.collections.api.set.primitive.ShortSet.freeze.

Returns a frozen copy of this set.

public default MutableShortSet
intersect(ShortSet set)

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

Returns the set of all objects that are members of both this and set.

public default MutableShortSet
newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableShortCollection.newEmpty.

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

public MutableShortSet
reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.reject, org.eclipse.collections.api.set.primitive.ShortSet.reject.

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

public MutableShortSet
select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.select, org.eclipse.collections.api.set.primitive.ShortSet.select.

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

public default MutableShortSet
symmetricDifference(ShortSet set)

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

Returns the set of all objects that are a member of exactly one of this and set (elements which are in one of the sets, but not in both).

public default MutableShortSet
public ImmutableShortSet
public default MutableShortSet
public MutableShortSet
public MutableShortSet
public MutableShortSet
public MutableShortSet
Inherited from org.eclipse.collections.api.collection.primitive.MutableShortCollection:
addaddAlladdAllclearremoveremoveAllremoveAllremoveIfretainAllretainAllshortIterator
Inherited from org.eclipse.collections.api.set.primitive.ShortSet:
cartesianProductequalshashCodeisProperSubsetOfisSubsetOf

Method Detail

asSynchronizedback to summary
public MutableShortSet asSynchronized()

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableShortSet asUnmodifiable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Short> boxed()
collectback to summary
public <V> MutableSet<V> collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.collect, org.eclipse.collections.api.set.primitive.ShortSet.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
differenceback to summary
public default MutableShortSet difference(ShortSet set)

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

Returns the set of all members of this that are not members of set. The difference of [1, 2, 3] and [2, 3, 4] is [1].

Annotations
@Override
Since
11.0.
freezeback to summary
public ShortSet freeze()

Redeclares org.eclipse.collections.api.set.primitive.ShortSet.freeze.

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

Annotations
@Override
intersectback to summary
public default MutableShortSet intersect(ShortSet set)

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

Returns the set of all objects that are members of both this and set. The intersection of [1, 2, 3] and [2, 3, 4] is the set [2, 3].

Annotations
@Override
Since
11.0.
newEmptyback to summary
public default MutableShortSet newEmpty()

Overrides default org.eclipse.collections.api.collection.primitive.MutableShortCollection.newEmpty.

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

Since
9.2.
rejectback to summary
public MutableShortSet reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.reject, org.eclipse.collections.api.set.primitive.ShortSet.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)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.select, org.eclipse.collections.api.set.primitive.ShortSet.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
symmetricDifferenceback to summary
public default MutableShortSet symmetricDifference(ShortSet set)

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

Returns the set of all objects that are a member of exactly one of this and set (elements which are in one of the sets, but not in both). For instance, for the sets [1, 2, 3] and [2, 3, 4], the symmetric difference set is [1, 4] . It is the set difference of the union and the intersection.

Annotations
@Override
Since
11.0.
tapback to summary
public default MutableShortSet tap(ShortProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableShortCollection.tap, org.eclipse.collections.api.set.primitive.ShortSet.tap.

Annotations
@Override
Since
9.0.
toImmutableback to summary
public ImmutableShortSet toImmutable()

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.toImmutable, org.eclipse.collections.api.set.primitive.ShortSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
unionback to summary
public default MutableShortSet union(ShortSet set)

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

Annotations
@Override
Since
11.0.
withback to summary
public MutableShortSet with(short element)

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.with.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.withAll.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.without.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableShortCollection.withoutAll.

Annotations
@Override