Class Short2ByteFunctions.PrimitiveFunction

    • Method Detail

      • containsKey

        public boolean containsKey​(short key)
        Description copied from interface: Short2ByteFunction
        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 Short2ByteFunction
        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: Short2ByteFunction
        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<Short,​Byte>
        Specified by:
        containsKey in interface Short2ByteFunction
        Parameters:
        key - the key.
        Returns:
        true if this function associates a value to key.
        See Also:
        Map.containsKey(Object)