Class AbstractObject2IntFunction<K>

    • Method Detail

      • defaultReturnValue

        public void defaultReturnValue​(int rv)
        Description copied from interface: Object2IntFunction
        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 Object2IntFunction<K>
        Parameters:
        rv - the new default return value.
        See Also:
        Object2IntFunction.defaultReturnValue()
      • defaultReturnValue

        public int defaultReturnValue()
        Description copied from interface: Object2IntFunction
        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 Object2IntFunction<K>
        Returns:
        the current default return value.