Class ObjectUtils


  • public final class ObjectUtils
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean eqOrBothNull​(java.lang.Object a, java.lang.Object b)  
      static int hashOrZero​(java.lang.Object o)
      Note -- if you are using Arrays.equals( ...
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • eqOrBothNull

        public static boolean eqOrBothNull​(java.lang.Object a,
                                           java.lang.Object b)
      • hashOrZero

        public static int hashOrZero​(java.lang.Object o)
        Note -- if you are using Arrays.equals( ... ) or similar and want a compatible hash method, see methods in ArrayUtils.