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

public Interface MutableLongSet

extends MutableLongCollection, LongSet
Imports
org.eclipse.collections.api.LongIterable, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.collection.primitive.MutableLongCollection, 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 MutableLongSet
public MutableLongSet
public MutableSet<Long>
public <V> MutableSet<V>
collect(LongToObjectFunction<? extends V> function)

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.collect, org.eclipse.collections.api.set.primitive.LongSet.collect.

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

public default MutableLongSet
difference(LongSet set)

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

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

public LongSet
freeze()

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

Returns a frozen copy of this set.

public default MutableLongSet
intersect(LongSet set)

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

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

public default MutableLongSet
newEmpty()

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

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

public MutableLongSet
reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.reject, org.eclipse.collections.api.set.primitive.LongSet.reject.

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

public MutableLongSet
select(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.select, org.eclipse.collections.api.set.primitive.LongSet.select.

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

public default MutableLongSet
symmetricDifference(LongSet set)

Implements org.eclipse.collections.api.set.primitive.LongSet.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 MutableLongSet
public ImmutableLongSet
public default MutableLongSet
public MutableLongSet
public MutableLongSet
public MutableLongSet
public MutableLongSet
Inherited from org.eclipse.collections.api.collection.primitive.MutableLongCollection:
addaddAlladdAllclearlongIteratorremoveremoveAllremoveAllremoveIfretainAllretainAll
Inherited from org.eclipse.collections.api.set.primitive.LongSet:
cartesianProductequalshashCodeisProperSubsetOfisSubsetOf

Method Detail

asSynchronizedback to summary
public MutableLongSet asSynchronized()

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

Annotations
@Override
asUnmodifiableback to summary
public MutableLongSet asUnmodifiable()

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

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.collect, org.eclipse.collections.api.set.primitive.LongSet.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
differenceback to summary
public default MutableLongSet difference(LongSet set)

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

Redeclares org.eclipse.collections.api.set.primitive.LongSet.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 MutableLongSet intersect(LongSet set)

Implements org.eclipse.collections.api.set.primitive.LongSet.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 MutableLongSet newEmpty()

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

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

Since
9.2.
rejectback to summary
public MutableLongSet reject(LongPredicate predicate)

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.reject, org.eclipse.collections.api.set.primitive.LongSet.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)

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.select, org.eclipse.collections.api.set.primitive.LongSet.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
symmetricDifferenceback to summary
public default MutableLongSet symmetricDifference(LongSet set)

Implements org.eclipse.collections.api.set.primitive.LongSet.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 MutableLongSet tap(LongProcedure procedure)

Overrides default org.eclipse.collections.api.collection.primitive.MutableLongCollection.tap, org.eclipse.collections.api.set.primitive.LongSet.tap.

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

Redeclares org.eclipse.collections.api.collection.primitive.MutableLongCollection.toImmutable, org.eclipse.collections.api.set.primitive.LongSet.toImmutable.

Returns an immutable copy of this set.

Annotations
@Override
unionback to summary
public default MutableLongSet union(LongSet set)

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

Annotations
@Override
Since
11.0.
withback to summary
public MutableLongSet with(long element)

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

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

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

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

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

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

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

Annotations
@Override