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

public Interface ImmutableShortSet

extends ImmutableShortCollection, 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.ImmutableShortCollection, org.eclipse.collections.api.set.ImmutableSet

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

Method Summary

Modifier and TypeMethod and Description
public <V> ImmutableSet<V>
collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet
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 default ImmutableShortSet
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 ImmutableShortSet
public ImmutableShortSet
public ImmutableShortSet
public ImmutableShortSet
public ImmutableShortSet
reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet
select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet
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 ImmutableShortSet
public default ImmutableShortSet
Inherited from org.eclipse.collections.api.set.primitive.ShortSet:
cartesianProductequalsfreezehashCodeisProperSubsetOfisSubsetOftoImmutable

Method Detail

collectback to summary
public <V> ImmutableSet<V> collect(ShortToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet 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.
intersectback to summary
public default ImmutableShortSet 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.
newWithback to summary
public ImmutableShortSet newWith(short element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWith.

Annotations
@Override
newWithAllback to summary
public ImmutableShortSet newWithAll(ShortIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithAll.

Annotations
@Override
newWithoutback to summary
public ImmutableShortSet newWithout(short element)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithout.

Annotations
@Override
newWithoutAllback to summary
public ImmutableShortSet newWithoutAll(ShortIterable elements)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.newWithoutAll.

Annotations
@Override
rejectback to summary
public ImmutableShortSet reject(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet select(ShortPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableShortCollection.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 ImmutableShortSet 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 ImmutableShortSet tap(ShortProcedure procedure)

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

Annotations
@Override
Since
9.0.
unionback to summary
public default ImmutableShortSet union(ShortSet set)

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

Annotations
@Override
Since
11.0.