Class AbstractByte2FloatFunction

    • Method Detail

      • defaultReturnValue

        public void defaultReturnValue​(float rv)
        Description copied from interface: Byte2FloatFunction
        Sets the default return value (optional operation). This value must be returned by type-specific versions of get(), put() and remove() to denote that the map does not contain the specified key. It must be 0/false/null by default.
        Specified by:
        defaultReturnValue in interface Byte2FloatFunction
        Parameters:
        rv - the new default return value.
        See Also:
        Byte2FloatFunction.defaultReturnValue()
      • defaultReturnValue

        public float defaultReturnValue()
        Description copied from interface: Byte2FloatFunction
        Gets the default return value.

        This default implementation just return the default null value of the type (null for objects, 0 for scalars, false for Booleans).

        Specified by:
        defaultReturnValue in interface Byte2FloatFunction
        Returns:
        the current default return value.