Class ImmutableFloatFloatMapKeySet

    • Field Detail

      • keysValues

        private final float[] keysValues
      • occupiedWithData

        private final int occupiedWithData
      • containsZeroKey

        private final boolean containsZeroKey
      • containsOneKey

        private final boolean containsOneKey
    • Constructor Detail

      • ImmutableFloatFloatMapKeySet

        ImmutableFloatFloatMapKeySet​(float[] keysValues,
                                     int occupiedWithData,
                                     boolean containsZeroKey,
                                     boolean containsOneKey)
    • Method Detail

      • isEmptyKey

        private static boolean isEmptyKey​(float key)
      • isRemovedKey

        private static boolean isRemovedKey​(float key)
      • isNonSentinel

        private static boolean isNonSentinel​(float key)
      • floatIterator

        public FloatIterator floatIterator()
        Description copied from interface: FloatIterable
        Returns a primitive iterator that can be used to iterate over the FloatIterable in an imperative style.
        Specified by:
        floatIterator in interface FloatIterable
      • toArray

        public float[] toArray()
        Description copied from interface: FloatIterable
        Converts the FloatIterable to a primitive float array.
        Specified by:
        toArray in interface FloatIterable
      • toArray

        public float[] toArray​(float[] array)
        Description copied from interface: FloatIterable
        Converts 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:
        toArray in interface FloatIterable
      • contains

        public boolean contains​(float value)
        Description copied from interface: FloatIterable
        Returns true if the value is contained in the FloatIterable, and false if it is not.
        Specified by:
        contains in interface FloatIterable
      • count

        public int count​(FloatPredicate predicate)
        Description copied from interface: FloatIterable
        Returns a count of the number of elements in the FloatIterable that return true for the specified predicate.
        Specified by:
        count in interface FloatIterable
      • anySatisfy

        public boolean anySatisfy​(FloatPredicate predicate)
        Description copied from interface: FloatIterable
        Returns true if any of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        anySatisfy in interface FloatIterable
      • allSatisfy

        public boolean allSatisfy​(FloatPredicate predicate)
        Description copied from interface: FloatIterable
        Returns true if all of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        allSatisfy in interface FloatIterable
      • noneSatisfy

        public boolean noneSatisfy​(FloatPredicate predicate)
        Description copied from interface: FloatIterable
        Returns true if none of the elements in the FloatIterable return true for the specified predicate, otherwise returns false.
        Specified by:
        noneSatisfy in interface FloatIterable
      • writeReplace

        private java.lang.Object 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)