Top Description Fields Constructors Methods
org.eclipse.collections.impl.set.mutable.primitive

public Class UnmodifiableIntSet

extends AbstractUnmodifiableIntCollection
implements MutableIntSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableIntSet, org.eclipse.collections.api.set.primitive.IntSet, org.eclipse.collections.api.IntIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableIntCollection
Imports
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.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableIntSet, .IntSet, .MutableIntSet, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection, org.eclipse.collections.api.tuple.primitive.IntIntPair, org.eclipse.collections.impl.factory.primitive.IntSets

This file was automatically generated from template file unmodifiablePrimitiveSet.stg.
Since
3.1.

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

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> MutableSet<V>
public boolean
equals(Object otherSet)

Overrides java.lang.Object.equals.

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

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

public IntSet
freeze()

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.freeze.

Returns a frozen copy of this set.

private MutableIntSet
public int
public MutableIntSet
public static UnmodifiableIntSet
of(MutableIntSet set)

This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.

public MutableIntSet
public MutableIntSet
public ImmutableIntSet
public UnmodifiableIntSet
public UnmodifiableIntSet
public UnmodifiableIntSet
public UnmodifiableIntSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetIntCollectioninjectIntointIteratorisEmptymakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.serialVersionUID.

Constructor Detail

UnmodifiableIntSetback to summary
public UnmodifiableIntSet(MutableIntSet set)

Method Detail

asSynchronizedback to summary
public MutableIntSet asSynchronized()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.asSynchronized.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableIntCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableIntSet asUnmodifiable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.asUnmodifiable.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableIntCollection.asUnmodifiable.

Annotations
@Override
boxedback to summary
public MutableSet<Integer> boxed()

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.boxed.

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

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

Doc from org.eclipse.collections.api.set.primitive.IntSet.cartesianProduct.

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.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.collect.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.collect, org.eclipse.collections.api.collection.primitive.MutableIntCollection.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
equalsback to summary
public boolean equals(Object otherSet)

Overrides java.lang.Object.equals.

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

Doc from org.eclipse.collections.api.set.primitive.IntSet.equals.

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

Annotations
@Override
freezeback to summary
public IntSet freeze()

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.freeze.

Doc from org.eclipse.collections.api.set.primitive.MutableIntSet.freeze.

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

getMutableIntSetback to summary
private MutableIntSet getMutableIntSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

Doc from org.eclipse.collections.api.set.primitive.IntSet.hashCode.

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

Annotations
@Override
newEmptyback to summary
public MutableIntSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableIntSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableIntCollection.newEmpty.

Doc from org.eclipse.collections.api.set.primitive.MutableIntSet.newEmpty.

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

Since
9.2.
ofback to summary
public static UnmodifiableIntSet of(MutableIntSet set)

This method will take a MutableIntSet and wrap it directly in a UnmodifiableIntSet.

rejectback to summary
public MutableIntSet reject(IntPredicate predicate)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.reject.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.reject, org.eclipse.collections.api.collection.primitive.MutableIntCollection.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)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.select.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.select, org.eclipse.collections.api.collection.primitive.MutableIntCollection.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
toImmutableback to summary
public ImmutableIntSet toImmutable()

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.toImmutable.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableIntCollection.toImmutable.

Doc from org.eclipse.collections.api.set.primitive.MutableIntSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public UnmodifiableIntSet with(int element)

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.with.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.with, org.eclipse.collections.api.collection.primitive.MutableIntCollection.with.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.withAll.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.withAll, org.eclipse.collections.api.collection.primitive.MutableIntCollection.withAll.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.without.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.without, org.eclipse.collections.api.collection.primitive.MutableIntCollection.without.

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

Overrides org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableIntCollection.withoutAll.

Implements org.eclipse.collections.api.set.primitive.MutableIntSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableIntCollection.withoutAll.

Annotations
@Override