Class ObjectUtils


  • public final class ObjectUtils
    extends Object
    Various Object utilities.
    Since:
    2.1RC1
    Version:
    $Id: e98e004e29b1d6656d3e0d89dfe9137155879810 $
    • Method Detail

      • equals

        @Deprecated
        public static boolean equals​(Object object1,
                                     Object object2)
        Deprecated.
        Check if provided object are equals. This method also take care of null.
        Parameters:
        object1 - the first object
        object2 - the second object
        Returns:
        true of the provided objects are equal
      • hasCode

        @Deprecated
        public static int hasCode​(Object object)
        Deprecated.
        Parameters:
        object - the object
        Returns:
        the provided object hash code or 0 of the object is null