Class ObjectUtil


  • public class ObjectUtil
    extends Object
    Generic utility methods related to objects.
    Author:
    Arjohn Kampman
    • Constructor Detail

      • ObjectUtil

        public ObjectUtil()
    • Method Detail

      • nullHashCode

        public static int nullHashCode​(Object o)
        Returns the hash code of the supplied object, or 0 if a null reference is supplied.
        Parameters:
        o - An object or null reference.
        Returns:
        The object's hash code, or 0 if the parameter is null.