Class DefaultCharHashFunction

    • Field Detail

      • INSTANCE

        public static final CharHashFunction INSTANCE
        Default instance of this hash function.
    • Constructor Detail

      • DefaultCharHashFunction

        protected DefaultCharHashFunction()
        Default constructor to be invoked by sub-classes.
    • Method Detail

      • hash

        public int hash​(char v)
        Description copied from interface: CharHashFunction
        Returns a hash code for a specified char value.
        Specified by:
        hash in interface CharHashFunction
        Parameters:
        v - the value for which to return a hash code.
        Returns:
        a hash code for the specified value.