HashFunctions
cern.colt.map

Class HashFunctions



  • public class HashFunctionsextends Object
    Provides various hash functions.
    • Method Summary

      Methods 
      Modifier and TypeMethod and Description
      static inthash(boolean value)
      Returns a hashcode for the specified value.
      static inthash(byte value)
      Returns a hashcode for the specified value.
      static inthash(char value)
      Returns a hashcode for the specified value.
      static inthash(double value)
      Returns a hashcode for the specified value.
      static inthash(float value)
      Returns a hashcode for the specified value.
      static inthash(int value)
      Returns a hashcode for the specified value.
      static inthash(long value)
      Returns a hashcode for the specified value.
      static inthash(Object object)
      Returns a hashcode for the specified object.
      static inthash(short value)
      Returns a hashcode for the specified value.
    • Method Detail

      • hash

        public static int hash(char value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(double value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(float value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(int value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(long value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(Object object)
        Returns a hashcode for the specified object.
        Returns:
        a hash code value for the specified object.
      • hash

        public static int hash(short value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(boolean value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.
      • hash

        public static int hash(byte value)
        Returns a hashcode for the specified value.
        Returns:
        a hash code value for the specified value.

SCaVis 2.1 © jWork.ORG