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

public Class UnmodifiableLongSet

extends AbstractUnmodifiableLongCollection
implements MutableLongSet
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.set.primitive.MutableLongSet, org.eclipse.collections.api.set.primitive.LongSet, org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.PrimitiveIterable, org.eclipse.collections.api.collection.primitive.MutableLongCollection
Imports
org.eclipse.collections.api.LongIterable, .LazyIterable, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.api.set.primitive.ImmutableLongSet, .LongSet, .MutableLongSet, org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection, org.eclipse.collections.api.tuple.primitive.LongLongPair, org.eclipse.collections.impl.factory.primitive.LongSets

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 MutableLongSet
public MutableLongSet
public MutableSet<Long>
public LazyIterable<LongLongPair>
cartesianProduct(LongSet set)

Implements org.eclipse.collections.api.set.primitive.LongSet.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.LongSet.equals.

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

public LongSet
freeze()

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

Returns a frozen copy of this set.

private MutableLongSet
public int
public MutableLongSet
public static UnmodifiableLongSet
of(MutableLongSet set)

This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.

public MutableLongSet
public MutableLongSet
public ImmutableLongSet
public UnmodifiableLongSet
public UnmodifiableLongSet
public UnmodifiableLongSet
public UnmodifiableLongSet
Inherited from org.eclipse.collections.impl.collection.mutable.primitive.AbstractUnmodifiableLongCollection:
addaddAlladdAllallSatisfyanySatisfyappendStringappendStringappendStringasLazyaveragechunkclearcontainscontainsAllcontainsAllcontainsAnycontainsAnycontainsNonecontainsNonecountdetectIfNoneeachgetLongCollectioninjectIntoisEmptylongIteratormakeStringmakeStringmakeStringmaxmaxIfEmptymedianminminIfEmptynoneSatisfynotEmptyreducereduceIfEmptyremoveremoveAllremoveAllremoveIfretainAllretainAllsizesumtoArraytoArraytoBagtoListtoSettoSortedArraytoSortedListtoString

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

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

Constructor Detail

UnmodifiableLongSetback to summary
public UnmodifiableLongSet(MutableLongSet set)

Method Detail

asSynchronizedback to summary
public MutableLongSet asSynchronized()

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.asSynchronized, org.eclipse.collections.api.collection.primitive.MutableLongCollection.asSynchronized.

Annotations
@Override
asUnmodifiableback to summary
public MutableLongSet asUnmodifiable()

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.asUnmodifiable, org.eclipse.collections.api.collection.primitive.MutableLongCollection.asUnmodifiable.

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

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

Annotations
@Override
cartesianProductback to summary
public LazyIterable<LongLongPair> cartesianProduct(LongSet set)

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

Doc from org.eclipse.collections.api.set.primitive.LongSet.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(LongToObjectFunction<? extends V> function)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.collect, org.eclipse.collections.api.collection.primitive.MutableLongCollection.collect.

Doc from org.eclipse.collections.api.LongIterable.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.LongSet.equals.

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

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

Annotations
@Override
freezeback to summary
public LongSet freeze()

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

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

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

getMutableLongSetback to summary
private MutableLongSet getMutableLongSet()
hashCodeback to summary
public int hashCode()

Overrides java.lang.Object.hashCode.

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

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

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

Annotations
@Override
newEmptyback to summary
public MutableLongSet newEmpty()

Overrides default org.eclipse.collections.api.set.primitive.MutableLongSet.newEmpty, org.eclipse.collections.api.collection.primitive.MutableLongCollection.newEmpty.

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

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

Since
9.2.
ofback to summary
public static UnmodifiableLongSet of(MutableLongSet set)

This method will take a MutableLongSet and wrap it directly in a UnmodifiableLongSet.

rejectback to summary
public MutableLongSet reject(LongPredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.reject, org.eclipse.collections.api.collection.primitive.MutableLongCollection.reject.

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

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

Annotations
@Override
selectback to summary
public MutableLongSet select(LongPredicate predicate)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.select, org.eclipse.collections.api.collection.primitive.MutableLongCollection.select.

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

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

Annotations
@Override
toImmutableback to summary
public ImmutableLongSet toImmutable()

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.toImmutable, org.eclipse.collections.api.collection.primitive.MutableLongCollection.toImmutable.

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

Returns an immutable copy of this set.

Annotations
@Override
withback to summary
public UnmodifiableLongSet with(long element)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.with, org.eclipse.collections.api.collection.primitive.MutableLongCollection.with.

Annotations
@Override
withAllback to summary
public UnmodifiableLongSet withAll(LongIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.withAll, org.eclipse.collections.api.collection.primitive.MutableLongCollection.withAll.

Annotations
@Override
withoutback to summary
public UnmodifiableLongSet without(long element)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.without, org.eclipse.collections.api.collection.primitive.MutableLongCollection.without.

Annotations
@Override
withoutAllback to summary
public UnmodifiableLongSet withoutAll(LongIterable elements)

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

Implements org.eclipse.collections.api.set.primitive.MutableLongSet.withoutAll, org.eclipse.collections.api.collection.primitive.MutableLongCollection.withoutAll.

Annotations
@Override