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

public Interface MutableIntSet

extends MutableIntCollection, 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.MutableIntCollection, 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 MutableIntSet
public MutableIntSet
public MutableSet<Integer>
public <V> MutableSet<V>
collect(IntToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet
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 IntSet
freeze()

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

Returns a frozen copy of this set.

public default MutableIntSet
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 default MutableIntSet
newEmpty()

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

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

public MutableIntSet
reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet
select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet
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 MutableIntSet
public ImmutableIntSet
public default MutableIntSet
public MutableIntSet
public MutableIntSet
public MutableIntSet
public MutableIntSet
Inherited from org.eclipse.collections.api.collection.primitive.MutableIntCollection:
addaddAlladdAllclearintIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.set.primitive.IntSet:
cartesianProductequalshashCodeisProperSubsetOfisSubsetOf

Method Detail

asSynchronizedback to summary
public MutableIntSet asSynchronized()

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

Annotations
@Override
asUnmodifiableback to summary
public MutableIntSet asUnmodifiable()

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet 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.
freezeback to summary
public IntSet freeze()

Redeclares org.eclipse.collections.api.set.primitive.IntSet.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 MutableIntSet 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.
newEmptyback to summary
public default MutableIntSet newEmpty()

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

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

Since
9.2.
rejectback to summary
public MutableIntSet reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.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 MutableIntSet 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 MutableIntSet tap(IntProcedure procedure)

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableIntCollection.toImmutable, org.eclipse.collections.api.set.primitive.IntSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
unionback to summary
public default MutableIntSet union(IntSet set)

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

Annotations
@Override
Since
11.0.
withback to summary
public MutableIntSet with(int element)

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

Annotations
@Override
withAllback to summary
public MutableIntSet withAll(IntIterable elements)

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

Annotations
@Override
withoutback to summary
public MutableIntSet without(int element)

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

Annotations
@Override
withoutAllback to summary
public MutableIntSet withoutAll(IntIterable elements)

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

Annotations
@Override