Class AbstractMutableFloatValuesMap

    • Constructor Detail

      • AbstractMutableFloatValuesMap

        public AbstractMutableFloatValuesMap()
    • Method Detail

      • getOccupiedWithData

        protected abstract int getOccupiedWithData()
      • setSentinelValuesNull

        protected abstract void setSentinelValuesNull()
      • getEmptyValue

        protected abstract float getEmptyValue()
      • getValueAtIndex

        protected abstract float getValueAtIndex​(int index)
      • getTableSize

        protected abstract int getTableSize()
      • isNonSentinelAtIndex

        protected abstract boolean isNonSentinelAtIndex​(int index)
      • addEmptyKeyValue

        protected void addEmptyKeyValue​(float value)
      • removeEmptyKey

        protected void removeEmptyKey()
      • addRemovedKeyValue

        protected void addRemovedKeyValue​(float value)
      • removeRemovedKey

        protected void removeRemovedKey()
      • 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
      • containsAll

        public boolean containsAll​(FloatIterable source)
        Description copied from interface: FloatIterable
        Returns true if all of the values specified in the source FloatIterable are contained in the FloatIterable, and false if they are not.
        Specified by:
        containsAll 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[] target)
        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
      • 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
      • chunk

        public RichIterable<FloatIterable> chunk​(int size)
        Description copied from interface: FloatIterable
        Partitions elements in fixed size chunks.
        Specified by:
        chunk in interface FloatIterable
        Parameters:
        size - the number of elements per chunk
        Returns:
        A RichIterable containing FloatIterables of size size, except the last will be truncated if the elements don't divide evenly.
      • containsValue

        public boolean containsValue​(float value)
        Description copied from interface: FloatValuesMap
        Returns whether or not this map contains the value.
        Specified by:
        containsValue in interface FloatValuesMap
        Parameters:
        value - the value to test
        Returns:
        if this collection contains the value
      • forEachValue

        public void forEachValue​(FloatProcedure procedure)
        Description copied from interface: FloatValuesMap
        Iterates through each value in this map.
        Specified by:
        forEachValue in interface FloatValuesMap
        Parameters:
        procedure - the procedure to invoke for each value in this map.