Class Long2ShortFunctions.PrimitiveFunction

    • Method Detail

      • containsKey

        public boolean containsKey​(long key)
        Description copied from interface: Long2ShortFunction
        Returns true if this function contains a mapping for the specified key.

        Note that for some kind of functions (e.g., hashes) this method will always return true. In particular, this default implementation always returns true.

        Specified by:
        containsKey in interface Long2ShortFunction
        Parameters:
        key - the key.
        Returns:
        true if this function associates a value to key.
        See Also:
        Function.containsKey(Object)
      • containsKey

        @Deprecated
        public boolean containsKey​(Object key)
        Deprecated.
        Description copied from interface: Long2ShortFunction
        Returns true if this function contains a mapping for the specified key.

        Note that for some kind of functions (e.g., hashes) this method will always return true. This default implementation, in particular, always return true.

        Specified by:
        containsKey in interface Function<Long,​Short>
        Specified by:
        containsKey in interface Long2ShortFunction
        Parameters:
        key - the key.
        Returns:
        true if this function associates a value to key.
        See Also:
        Map.containsKey(Object)