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

public Interface IntSet

extends IntIterable
Known Direct Subinterfaces
org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.api.set.primitive.ImmutableIntSet
Imports
java.util.Set, org.eclipse.collections.api.IntIterable, .LazyIterable, 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.set.SetIterable, org.eclipse.collections.api.tuple.primitive.IntIntPair

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

Method Summary

Modifier and TypeMethod and Description
public LazyIterable<IntIntPair>
cartesianProduct(IntSet set)

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> SetIterable<V>
collect(IntToObjectFunction<? extends V> function)

Redeclares 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.

public IntSet
difference(IntSet set)

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

public boolean
equals(Object o)

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

public IntSet
freeze()

Returns a frozen copy of this set.

public int
hashCode()

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

public IntSet
intersect(IntSet set)

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

public default boolean
isProperSubsetOf(IntSet set)

Returns true if all the members of this are also members of set and the two sets are not equal.

public default boolean
isSubsetOf(IntSet set)

Returns true if all the members of this are also members of set.

public IntSet
reject(IntPredicate predicate)

Redeclares 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.

public IntSet
select(IntPredicate predicate)

Redeclares 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.

public IntSet
symmetricDifference(IntSet set)

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 IntSet
public ImmutableIntSet
toImmutable()

Returns an immutable copy of this set.

public IntSet
Inherited from org.eclipse.collections.api.IntIterable:
allSatisfyanySatisfyasLazyaverageaverageIfEmptychunkcollectcollectBooleancollectBytecollectCharcollectDoublecollectFloatcollectIntcollectLongcollectShortcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachflatCollectforEachinjectIntoinjectIntoBooleaninjectIntoByteinjectIntoCharinjectIntoDoubleinjectIntoFloatinjectIntoIntinjectIntoLonginjectIntoShortintIteratormaxmaxIfEmptymedianmedianIfEmptyminminIfEmptynoneSatisfyreducereduceIfEmptyrejectselectsumsummaryStatisticstoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoSortedListtoSortedListBytoSortedListBy

Method Detail

cartesianProductback to summary
public LazyIterable<IntIntPair> cartesianProduct(IntSet set)

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.

Since
11.0.
collectback to summary
public <V> SetIterable<V> collect(IntToObjectFunction<? extends V> function)

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

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 the set [1].

Since
11.0.
equalsback to summary
public boolean equals(Object o)

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

Annotations
@Override
freezeback to summary
public IntSet freeze()

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

hashCodeback to summary
public int hashCode()

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

Annotations
@Override
intersectback to summary
public IntSet intersect(IntSet set)

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].

Since
11.0.
isProperSubsetOfback to summary
public default boolean isProperSubsetOf(IntSet set)

Returns true if all the members of this are also members of set and the two sets are not equal. For example, [1, 2] is a proper subset of [1, 2, 3], but [1, 2, 3] is not.

Since
11.0.
isSubsetOfback to summary
public default boolean isSubsetOf(IntSet set)

Returns true if all the members of this are also members of set. For example, [1, 2] is a subset of [1, 2, 3], but [1, 4] is not.

Since
11.0.
rejectback to summary
public IntSet reject(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.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 IntSet select(IntPredicate predicate)

Redeclares org.eclipse.collections.api.IntIterable.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 IntSet symmetricDifference(IntSet set)

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.

Since
11.0.
tapback to summary
public default IntSet tap(IntProcedure procedure)

Overrides default org.eclipse.collections.api.IntIterable.tap.

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

Returns an immutable copy of this set. If the set is immutable, it returns itself.

unionback to summary
public IntSet union(IntSet set)
Since
11.0.