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

public abstract Class AbstractMutableLongKeySet

extends Object
implements MutableLongSet, Externalizable
Class Inheritance
All Implemented Interfaces
java.io.Externalizable, java.io.Serializable, 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
Known Direct Subclasses
org.eclipse.collections.impl.map.mutable.primitive.LongLongHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongBooleanHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongByteHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongCharHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongDoubleHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongFloatHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongIntHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongObjectHashMap.KeySet, org.eclipse.collections.impl.map.mutable.primitive.LongShortHashMap.KeySet
Imports
java.io.IOException, .Externalizable, .ObjectInput, .ObjectStreamException, .ObjectOutput, java.util.Arrays, .NoSuchElementException, org.eclipse.collections.api.RichIterable, .LongIterable, .LazyLongIterable, .LazyIterable, org.eclipse.collections.api.bag.primitive.MutableLongBag, org.eclipse.collections.api.block.function.primitive.LongToObjectFunction, .ObjectLongToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.LongPredicate, org.eclipse.collections.api.block.procedure.primitive.LongProcedure, org.eclipse.collections.api.iterator.LongIterator, org.eclipse.collections.api.list.MutableList, org.eclipse.collections.api.list.primitive.MutableLongList, org.eclipse.collections.api.set.primitive.ImmutableLongSet, .LongSet, .MutableLongSet, org.eclipse.collections.impl.bag.mutable.primitive.LongHashBag, org.eclipse.collections.impl.factory.Lists, .Sets, org.eclipse.collections.impl.factory.primitive.LongSets, org.eclipse.collections.impl.lazy.primitive.LazyLongIterableAdapter, org.eclipse.collections.impl.list.mutable.primitive.LongArrayList, org.eclipse.collections.api.set.MutableSet, org.eclipse.collections.impl.set.mutable.primitive.BoxedMutableLongSet, .LongHashSet, .SynchronizedLongSet, .UnmodifiableLongSet, org.eclipse.collections.api.tuple.primitive.LongLongPair

This file was automatically generated from template file abstractMutablePrimitiveKeySet.stg.
Since
6.0.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final long
private static final long
private static final long

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public boolean
public boolean
allSatisfy(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.allSatisfy.

Returns true if all of the elements in the LongIterable return true for the specified predicate, otherwise returns false.

public boolean
anySatisfy(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.anySatisfy.

Returns true if any of the elements in the LongIterable return true for the specified predicate, otherwise returns false.

public void
appendString(Appendable appendable)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public void
appendString(Appendable appendable, String start, String separator, String end)

Implements org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable.

public LazyLongIterable
asLazy()

Implements org.eclipse.collections.api.LongIterable.asLazy.

Returns a LazyLongIterable adapter wrapping the source LongIterable.

public MutableLongSet
public MutableLongSet
public double
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 RichIterable<LongIterable>
chunk(int size)

Overrides default org.eclipse.collections.api.LongIterable.chunk.

Partitions elements in fixed size chunks.

public void
public <V> MutableSet<V>
collect(LongToObjectFunction<? extends V> function)

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

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

public boolean
contains(long value)

Implements org.eclipse.collections.api.LongIterable.contains.

Returns true if the value is contained in the LongIterable, and false if it is not.

public boolean
containsAll(long... source)

Overrides default org.eclipse.collections.api.LongIterable.containsAll.

Returns true if all of the values specified in the source array are contained in the LongIterable, and false if they are not.

public boolean
containsAll(LongIterable source)

Overrides default org.eclipse.collections.api.LongIterable.containsAll.

Returns true if all of the values specified in the source LongIterable are contained in the LongIterable, and false if they are not.

public int
count(LongPredicate predicate)

Implements org.eclipse.collections.api.LongIterable.count.

Returns a count of the number of elements in the LongIterable that return true for the specified predicate.

public long
public void
each(LongProcedure procedure)

Implements org.eclipse.collections.api.LongIterable.each.

A synonym for forEach.

public boolean
protected abstract long
getKeyAtIndex(int index)

protected abstract MutableLongKeysMap
protected abstract AbstractSentinelValues
protected abstract int
public int
public <T> T
injectInto(T injectedValue, ObjectLongToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.LongIterable.injectInto.

public boolean
isEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.isEmpty.

Returns true if this iterable has zero items.

private static boolean
isEmptyKey(long key)

private static boolean
isNonSentinel(long key)

private static boolean
isRemovedKey(long key)

public String
makeString()

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String) and defaulting the separator parameter to the characters ", " (comma and space).

public String
makeString(String separator)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection by delegating to makeString(String, String, String) and defaulting the start and end parameters to "" (the empty String).

public String
makeString(String start, String separator, String end)

Overrides default org.eclipse.collections.api.PrimitiveIterable.makeString.

Returns a string representation of this collection with the elements separated by the specified separator and enclosed between the start and end strings.

public long
public long
public double
public long
public long
public boolean
notEmpty()

Overrides default org.eclipse.collections.api.PrimitiveIterable.notEmpty.

The English equivalent of !this.isEmpty()

public void
readExternal(ObjectInput in)

Implements java.io.Externalizable.readExternal.

The object implements the readExternal method to restore its contents by calling the methods of DataInput for primitive types and readObject for objects, strings and arrays.

public MutableLongSet
reject(LongPredicate predicate)

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

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

public boolean
public boolean
public boolean
public MutableLongSet
select(LongPredicate predicate)

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

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

public int
size()

Implements org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

public long
public long[]
toArray()

Implements org.eclipse.collections.api.LongIterable.toArray.

Converts the LongIterable to a primitive long array.

public long[]
toArray(long[] result)

Overrides default org.eclipse.collections.api.LongIterable.toArray.

Converts the LongIterable to a primitive long array.

public MutableLongBag
toBag()

Implements org.eclipse.collections.api.LongIterable.toBag.

Converts the LongIterable to a new MutableLongBag.

public ImmutableLongSet
toImmutable()

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

Returns an immutable copy of this set.

public MutableLongList
toList()

Implements org.eclipse.collections.api.LongIterable.toList.

Converts the LongIterable to a new MutableLongList.

public MutableLongSet
toSet()

Implements org.eclipse.collections.api.LongIterable.toSet.

Converts the LongIterable to a new MutableLongSet.

public long[]
public MutableLongList
public String
toString()

Overrides java.lang.Object.toString.

Implements org.eclipse.collections.api.PrimitiveIterable.toString.

Returns a string with the elements of this iterable separated by commas with spaces and enclosed in square brackets.

public MutableLongSet
public MutableLongSet
public MutableLongSet
public MutableLongSet
public void
writeExternal(ObjectOutput out)

Implements java.io.Externalizable.writeExternal.

The object implements the writeExternal method to save its contents by calling the methods of DataOutput for its primitive values or calling the writeObject method of ObjectOutput for objects, strings, and arrays.

public Object
Inherited from java.lang.Object:
clonefinalizegetClassnotifynotifyAllwaitwaitwait