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

public Interface ImmutableIntSet

extends ImmutableIntCollection, IntSet
Imports
org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.block.function.primitive.IntToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.IntPredicate, org.eclipse.collections.api.block.procedure.primitive.IntProcedure, org.eclipse.collections.api.collection.primitive.ImmutableIntCollection, 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(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.set.primitive.IntSet.collect.

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

public default ImmutableIntSet
difference(IntSet set)

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

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

public default ImmutableIntSet
intersect(IntSet set)

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

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

public ImmutableIntSet
public ImmutableIntSet
public ImmutableIntSet
public ImmutableIntSet
public ImmutableIntSet
reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.set.primitive.IntSet.reject.

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

public ImmutableIntSet
select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.set.primitive.IntSet.select.

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

public default ImmutableIntSet
symmetricDifference(IntSet set)

Implements org.eclipse.collections.api.set.primitive.IntSet.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 ImmutableIntSet
public default ImmutableIntSet
Inherited from org.eclipse.collections.api.set.primitive.IntSet:
cartesianProductequalsfreezehashCodeisProperSubsetOfisSubsetOftoImmutable

Method Detail

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

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.collect, org.eclipse.collections.api.set.primitive.IntSet.collect.

Doc from org.eclipse.collections.api.IntIterable.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 ImmutableIntSet difference(IntSet set)

Implements org.eclipse.collections.api.set.primitive.IntSet.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 ImmutableIntSet intersect(IntSet set)

Implements org.eclipse.collections.api.set.primitive.IntSet.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 ImmutableIntSet newWith(int element)

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

Annotations
@Override
newWithAllback to summary
public ImmutableIntSet newWithAll(IntIterable elements)

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

Annotations
@Override
newWithoutback to summary
public ImmutableIntSet newWithout(int element)

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

Annotations
@Override
newWithoutAllback to summary
public ImmutableIntSet newWithoutAll(IntIterable elements)

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

Annotations
@Override
rejectback to summary
public ImmutableIntSet reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.reject, org.eclipse.collections.api.set.primitive.IntSet.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableIntSet select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.select, org.eclipse.collections.api.set.primitive.IntSet.select.

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

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

Annotations
@Override
symmetricDifferenceback to summary
public default ImmutableIntSet symmetricDifference(IntSet set)

Implements org.eclipse.collections.api.set.primitive.IntSet.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 ImmutableIntSet tap(IntProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.ImmutableIntCollection.tap, org.eclipse.collections.api.set.primitive.IntSet.tap.

Annotations
@Override
Since
9.0.
unionback to summary
public default ImmutableIntSet union(IntSet set)

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

Annotations
@Override
Since
11.0.