Class ImmutableFloatFloatMapKeySet
java.lang.Object
org.eclipse.collections.impl.primitive.AbstractFloatIterable
org.eclipse.collections.impl.set.primitive.AbstractFloatSet
org.eclipse.collections.impl.set.immutable.primitive.AbstractImmutableFloatSet
org.eclipse.collections.impl.map.mutable.primitive.ImmutableFloatFloatMapKeySet
- All Implemented Interfaces:
Serializable, ImmutableFloatCollection, FloatIterable, PrimitiveIterable, FloatSet, ImmutableFloatSet
This file was automatically generated from template file immutablePrimitivePrimitiveMapKeySet.stg
- Since:
- 6.0.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate final booleanprivate final booleanprivate static final floatprivate static final intprivate static final intprivate final float[]private final intprivate static final floatprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionImmutableFloatFloatMapKeySet(float[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey) -
Method Summary
Modifier and TypeMethodDescriptionbooleanallSatisfy(FloatPredicate predicate) Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.booleananySatisfy(FloatPredicate predicate) Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.voidappendString(Appendable appendable, String start, String separator, String end) Prints a string representation of this collection onto the givenAppendable.<V> ImmutableSet<V> collect(FloatToObjectFunction<? extends V> function) Returns a new collection with the results of applying the specified function on each element of the source collection.booleancontains(float value) Returns true if the value is contained in the FloatIterable, and false if it is not.intcount(FloatPredicate predicate) Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.floatdetectIfNone(FloatPredicate predicate, float ifNone) voideach(FloatProcedure procedure) A synonym for forEach.Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.voidforEach(FloatProcedure procedure) Applies the FloatProcedure to each element in the FloatIterable.inthashCode()Follows the same general contract asSet.hashCode().<T> TinjectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) private static booleanisEmptyKey(float key) private static booleanisNonSentinel(float key) private static booleanisRemovedKey(float key) private intmask(int spread) floatmax()floatmin()booleannoneSatisfy(FloatPredicate predicate) Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.(package private) intprobe(float element) (package private) intprobeThree(float element, int removedIndex) (package private) intprobeTwo(float element, int removedIndex) reject(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.select(FloatPredicate predicate) Returns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.intsize()Returns the number of items in this iterable.(package private) intspreadAndMask(float element) (package private) intspreadTwoAndMask(float element) doublesum()float[]toArray()Converts the FloatIterable to a primitive float array.float[]toArray(float[] array) Converts the FloatIterable to a primitive float array.private ObjectMethods inherited from class AbstractImmutableFloatSet
chunk, freeze, newWith, newWithAll, newWithout, newWithoutAll, toImmutableMethods inherited from class AbstractFloatSet
cartesianProduct, equalsMethods inherited from class AbstractFloatIterable
asLazy, average, maxIfEmpty, median, minIfEmpty, toBag, toList, toSet, toSortedArray, toSortedList, toStringMethods inherited from interface FloatIterable
asLazy, average, averageIfEmpty, collect, collectBoolean, collectByte, collectChar, collectDouble, collectFloat, collectInt, collectLong, collectShort, containsAll, containsAll, containsAny, containsAny, containsNone, containsNone, flatCollect, injectIntoBoolean, injectIntoByte, injectIntoChar, injectIntoDouble, injectIntoFloat, injectIntoInt, injectIntoLong, injectIntoShort, maxIfEmpty, median, medianIfEmpty, minIfEmpty, reduce, reduceIfEmpty, reject, select, summaryStatistics, toBag, toList, toSet, toSortedArray, toSortedList, toSortedList, toSortedListBy, toSortedListByMethods inherited from interface FloatSet
cartesianProduct, equals, isProperSubsetOf, isSubsetOf, tapMethods inherited from interface ImmutableFloatSet
difference, intersect, symmetricDifference, tap, unionMethods inherited from interface PrimitiveIterable
appendString, appendString, isEmpty, makeString, makeString, makeString, notEmpty, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
EMPTY_KEY
private static final float EMPTY_KEY- See Also:
-
REMOVED_KEY
private static final float REMOVED_KEY- See Also:
-
CACHE_LINE_SIZE
private static final int CACHE_LINE_SIZE- See Also:
-
KEY_SIZE
private static final int KEY_SIZE- See Also:
-
INITIAL_LINEAR_PROBE
private static final int INITIAL_LINEAR_PROBE- See Also:
-
keysValues
private final float[] keysValues -
occupiedWithData
private final int occupiedWithData -
containsZeroKey
private final boolean containsZeroKey -
containsOneKey
private final boolean containsOneKey
-
-
Constructor Details
-
ImmutableFloatFloatMapKeySet
ImmutableFloatFloatMapKeySet(float[] keysValues, int occupiedWithData, boolean containsZeroKey, boolean containsOneKey)
-
-
Method Details
-
isEmptyKey
private static boolean isEmptyKey(float key) -
isRemovedKey
private static boolean isRemovedKey(float key) -
isNonSentinel
private static boolean isNonSentinel(float key) -
hashCode
public int hashCode()Description copied from interface:FloatSetFollows the same general contract asSet.hashCode().- Specified by:
hashCodein interfaceFloatSet- Specified by:
hashCodein classAbstractFloatSet
-
size
public int size()Description copied from interface:PrimitiveIterableReturns the number of items in this iterable.- Specified by:
sizein interfacePrimitiveIterable
-
appendString
Description copied from interface:PrimitiveIterablePrints a string representation of this collection onto the givenAppendable. Prints the string returned byPrimitiveIterable.makeString(String, String, String).- Specified by:
appendStringin interfacePrimitiveIterable
-
floatIterator
Description copied from interface:FloatIterableReturns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.- Specified by:
floatIteratorin interfaceFloatIterable
-
toArray
public float[] toArray()Description copied from interface:FloatIterableConverts the FloatIterable to a primitive float array.- Specified by:
toArrayin interfaceFloatIterable
-
toArray
public float[] toArray(float[] array) Description copied from interface:FloatIterableConverts the FloatIterable to a primitive float 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.- Specified by:
toArrayin interfaceFloatIterable
-
contains
public boolean contains(float value) Description copied from interface:FloatIterableReturns true if the value is contained in the FloatIterable, and false if it is not.- Specified by:
containsin interfaceFloatIterable
-
forEach
Description copied from interface:FloatIterableApplies the FloatProcedure to each element in the FloatIterable.- Specified by:
forEachin interfaceFloatIterable
-
each
Description copied from interface:FloatIterableA synonym for forEach.- Specified by:
eachin interfaceFloatIterable- Since:
- 7.0.
-
select
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return true for the specified predicate.- Specified by:
selectin interfaceFloatIterable- Specified by:
selectin interfaceFloatSet- Specified by:
selectin interfaceImmutableFloatCollection- Specified by:
selectin interfaceImmutableFloatSet
-
reject
Description copied from interface:FloatIterableReturns a new FloatIterable with all of the elements in the FloatIterable that return false for the specified predicate.- Specified by:
rejectin interfaceFloatIterable- Specified by:
rejectin interfaceFloatSet- Specified by:
rejectin interfaceImmutableFloatCollection- Specified by:
rejectin interfaceImmutableFloatSet
-
collect
Description copied from interface:FloatIterableReturns 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.- Specified by:
collectin interfaceFloatIterable- Specified by:
collectin interfaceFloatSet- Specified by:
collectin interfaceImmutableFloatCollection- Specified by:
collectin interfaceImmutableFloatSet
-
detectIfNone
- Specified by:
detectIfNonein interfaceFloatIterable
-
count
Description copied from interface:FloatIterableReturns a count of the number of elements in the FloatIterable that return true for the specified predicate.- Specified by:
countin interfaceFloatIterable
-
anySatisfy
Description copied from interface:FloatIterableReturns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.- Specified by:
anySatisfyin interfaceFloatIterable
-
allSatisfy
Description copied from interface:FloatIterableReturns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.- Specified by:
allSatisfyin interfaceFloatIterable
-
noneSatisfy
Description copied from interface:FloatIterableReturns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.- Specified by:
noneSatisfyin interfaceFloatIterable
-
sum
public double sum()- Specified by:
sumin interfaceFloatIterable
-
max
public float max()- Specified by:
maxin interfaceFloatIterable
-
min
public float min()- Specified by:
minin interfaceFloatIterable
-
injectInto
public <T> T injectInto(T injectedValue, ObjectFloatToObjectFunction<? super T, ? extends T> function) - Specified by:
injectIntoin interfaceFloatIterable
-
writeReplace
-
probe
int probe(float element) -
probeTwo
int probeTwo(float element, int removedIndex) -
probeThree
int probeThree(float element, int removedIndex) -
spreadAndMask
int spreadAndMask(float element) -
spreadTwoAndMask
int spreadTwoAndMask(float element) -
mask
private int mask(int spread)
-