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

pack-priv Class ImmutableDoubleMapKeySet

extends AbstractImmutableDoubleSet
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.io.IOException, .Serializable, java.util.NoSuchElementException, org.eclipse.collections.impl.SpreadFunctions, org.eclipse.collections.api.block.function.primitive.DoubleToObjectFunction, .ObjectDoubleToObjectFunction, org.eclipse.collections.api.block.predicate.primitive.DoublePredicate, org.eclipse.collections.api.block.procedure.primitive.DoubleProcedure, org.eclipse.collections.api.iterator.DoubleIterator, org.eclipse.collections.api.set.ImmutableSet, .MutableSet, org.eclipse.collections.api.set.primitive.ImmutableDoubleSet, org.eclipse.collections.impl.set.immutable.primitive.ImmutableDoubleSetSerializationProxy, .AbstractImmutableDoubleSet, org.eclipse.collections.impl.set.mutable.UnifiedSet, org.eclipse.collections.impl.set.mutable.primitive.DoubleHashSet

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
private static final int
private final boolean
private final boolean
private static final double
private static final int
private static final int
private final double[]
private final int
private static final double
private static final long

Constructor Summary

AccessConstructor and Description
pack-priv
ImmutableDoubleMapKeySet(double[] keys, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Summary

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

Implements org.eclipse.collections.api.DoubleIterable.allSatisfy.

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

public boolean
anySatisfy(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.anySatisfy.

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

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 <V> ImmutableSet<V>
collect(DoubleToObjectFunction<? extends V> function)

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.collect, org.eclipse.collections.api.set.primitive.DoubleSet.collect, org.eclipse.collections.api.DoubleIterable.collect.

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

public boolean
contains(double value)

Implements org.eclipse.collections.api.DoubleIterable.contains.

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

public int
count(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.count.

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

public double
public DoubleIterator
doubleIterator()

Implements org.eclipse.collections.api.DoubleIterable.doubleIterator.

Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.

public void
each(DoubleProcedure procedure)

Implements org.eclipse.collections.api.DoubleIterable.each.

A synonym for forEach.

public void
forEach(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.DoubleIterable.forEach.

Applies the DoubleProcedure to each element in the DoubleIterable.

public int
public <T> T
injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.DoubleIterable.injectInto.

private static boolean
isEmptyKey(double key)

private static boolean
isNonSentinel(double key)

private static boolean
isRemovedKey(double key)

private int
mask(int spread)

public double
public double
public boolean
noneSatisfy(DoublePredicate predicate)

Overrides default org.eclipse.collections.api.DoubleIterable.noneSatisfy.

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

pack-priv int
probe(double element)

pack-priv int
probeThree(double element, int removedIndex)

pack-priv int
probeTwo(double element, int removedIndex)

public ImmutableDoubleSet
reject(DoublePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.reject, org.eclipse.collections.api.set.primitive.DoubleSet.reject, org.eclipse.collections.api.DoubleIterable.reject.

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

public ImmutableDoubleSet
select(DoublePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.select, org.eclipse.collections.api.set.primitive.DoubleSet.select, org.eclipse.collections.api.DoubleIterable.select.

Returns a new DoubleIterable with all of the elements in the DoubleIterable 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.

pack-priv int
spreadAndMask(double element)

pack-priv int
spreadTwoAndMask(double element)

public double
public double[]
toArray()

Implements org.eclipse.collections.api.DoubleIterable.toArray.

Converts the DoubleIterable to a primitive double array.

public double[]
toArray(double[] array)

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

Converts the DoubleIterable to a primitive double array.

private Object
Inherited from org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableDoubleSet:
chunkfreezenewWithnewWithAllnewWithoutnewWithoutAlltoImmutable

Field Detail

CACHE_LINE_SIZEback to summary
private static final int CACHE_LINE_SIZE
containsOneKeyback to summary
private final boolean containsOneKey
containsZeroKeyback to summary
private final boolean containsZeroKey
EMPTY_KEYback to summary
private static final double EMPTY_KEY
INITIAL_LINEAR_PROBEback to summary
private static final int INITIAL_LINEAR_PROBE
KEY_SIZEback to summary
private static final int KEY_SIZE
keysback to summary
private final double[] keys
occupiedWithDataback to summary
private final int occupiedWithData
REMOVED_KEYback to summary
private static final double REMOVED_KEY
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

ImmutableDoubleMapKeySetback to summary
pack-priv ImmutableDoubleMapKeySet(double[] keys, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)

Method Detail

allSatisfyback to summary
public boolean allSatisfy(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.allSatisfy.

Doc from org.eclipse.collections.api.DoubleIterable.allSatisfy.

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

Annotations
@Override
anySatisfyback to summary
public boolean anySatisfy(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.anySatisfy.

Doc from org.eclipse.collections.api.DoubleIterable.anySatisfy.

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

Annotations
@Override
appendStringback to summary
public void appendString(Appendable appendable, String start, String separator, String end)

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

Doc from org.eclipse.collections.api.PrimitiveIterable.appendString.

Prints a string representation of this collection onto the given Appendable. Prints the string returned by makeString(String, String, String).

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

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.collect, org.eclipse.collections.api.set.primitive.DoubleSet.collect, org.eclipse.collections.api.DoubleIterable.collect.

Doc from org.eclipse.collections.api.DoubleIterable.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
containsback to summary
public boolean contains(double value)

Implements org.eclipse.collections.api.DoubleIterable.contains.

Doc from org.eclipse.collections.api.DoubleIterable.contains.

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

Annotations
@Override
countback to summary
public int count(DoublePredicate predicate)

Implements org.eclipse.collections.api.DoubleIterable.count.

Doc from org.eclipse.collections.api.DoubleIterable.count.

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

Annotations
@Override
detectIfNoneback to summary
public double detectIfNone(DoublePredicate predicate, double ifNone)

Implements org.eclipse.collections.api.DoubleIterable.detectIfNone.

Annotations
@Override
doubleIteratorback to summary
public DoubleIterator doubleIterator()

Implements org.eclipse.collections.api.DoubleIterable.doubleIterator.

Doc from org.eclipse.collections.api.DoubleIterable.doubleIterator.

Returns a primitive iterator that can be used to iterate over the DoubleIterable in an imperative style.

Annotations
@Override
eachback to summary
public void each(DoubleProcedure procedure)

Implements org.eclipse.collections.api.DoubleIterable.each.

Doc from org.eclipse.collections.api.DoubleIterable.each.

A synonym for forEach.

Annotations
@Override
Since
7.0.
forEachback to summary
public void forEach(DoubleProcedure procedure)

Overrides default org.eclipse.collections.api.DoubleIterable.forEach.

Doc from org.eclipse.collections.api.DoubleIterable.forEach.

Applies the DoubleProcedure to each element in the DoubleIterable.

Annotations
@Override
hashCodeback to summary
public int hashCode()

Implements abstract org.eclipse.collections.impl.set.primitive.AbstractDoubleSet.hashCode.

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

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

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

Annotations
@Override
injectIntoback to summary
public <T> T injectInto(T injectedValue, ObjectDoubleToObjectFunction<? super T, ? extends T> function)

Implements org.eclipse.collections.api.DoubleIterable.injectInto.

Annotations
@Override
isEmptyKeyback to summary
private static boolean isEmptyKey(double key)
isNonSentinelback to summary
private static boolean isNonSentinel(double key)
isRemovedKeyback to summary
private static boolean isRemovedKey(double key)
maskback to summary
private int mask(int spread)
maxback to summary
public double max()

Implements org.eclipse.collections.api.DoubleIterable.max.

Annotations
@Override
minback to summary
public double min()

Implements org.eclipse.collections.api.DoubleIterable.min.

Annotations
@Override
noneSatisfyback to summary
public boolean noneSatisfy(DoublePredicate predicate)

Overrides default org.eclipse.collections.api.DoubleIterable.noneSatisfy.

Doc from org.eclipse.collections.api.DoubleIterable.noneSatisfy.

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

Annotations
@Override
probeback to summary
pack-priv int probe(double element)
probeThreeback to summary
pack-priv int probeThree(double element, int removedIndex)
probeTwoback to summary
pack-priv int probeTwo(double element, int removedIndex)
rejectback to summary
public ImmutableDoubleSet reject(DoublePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.reject, org.eclipse.collections.api.set.primitive.DoubleSet.reject, org.eclipse.collections.api.DoubleIterable.reject.

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

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

Annotations
@Override
selectback to summary
public ImmutableDoubleSet select(DoublePredicate predicate)

Implements org.eclipse.collections.api.set.primitive.ImmutableDoubleSet.select, org.eclipse.collections.api.set.primitive.DoubleSet.select, org.eclipse.collections.api.DoubleIterable.select.

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

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

Annotations
@Override
sizeback to summary
public int size()

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

Doc from org.eclipse.collections.api.PrimitiveIterable.size.

Returns the number of items in this iterable.

Annotations
@Override
spreadAndMaskback to summary
pack-priv int spreadAndMask(double element)
spreadTwoAndMaskback to summary
pack-priv int spreadTwoAndMask(double element)
sumback to summary
public double sum()

Implements org.eclipse.collections.api.DoubleIterable.sum.

Annotations
@Override
toArrayback to summary
public double[] toArray()

Implements org.eclipse.collections.api.DoubleIterable.toArray.

Doc from org.eclipse.collections.api.DoubleIterable.toArray.

Converts the DoubleIterable to a primitive double array.

Annotations
@Override
toArrayback to summary
public double[] toArray(double[] array)

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

Doc from org.eclipse.collections.api.DoubleIterable.toArray.

Converts the DoubleIterable to a primitive double array. If the collection fits into the provided array it is used to store its elements and is returned from the method, otherwise a new array of the appropriate size is allocated and returned. If the iterable is empty, the target array is returned unchanged.

Annotations
@Override
writeReplaceback to summary
private Object writeReplace()
org.eclipse.collections.impl.map.mutable.primitive back to summary

private Class ImmutableDoubleMapKeySet.InternalDoubleIterator

extends Object
implements DoubleIterator
Class Inheritance
  • java.lang.Object
  • org.eclipse.collections.impl.map.mutable.primitive.ImmutableDoubleMapKeySet.InternalDoubleIterator
All Implemented Interfaces
org.eclipse.collections.api.iterator.DoubleIterator

Field Summary

Modifier and TypeField and Description
private int
private boolean
private boolean
private int

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
public double
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

countback to summary
private int count
handledOneback to summary
private boolean handledOne
handledZeroback to summary
private boolean handledZero
positionback to summary
private int position

Constructor Detail

InternalDoubleIteratorback to summary
private InternalDoubleIterator()

Method Detail

hasNextback to summary
public boolean hasNext()

Implements org.eclipse.collections.api.iterator.DoubleIterator.hasNext.

Annotations
@Override
nextback to summary
public double next()

Implements org.eclipse.collections.api.iterator.DoubleIterator.next.

Annotations
@Override