Class Objects

java.lang.Object
com.oracle.coherence.common.base.Objects

public abstract class Objects extends Object
Class for providing comparison functionality.
Since:
20.06
Author:
cp 2000.08.02
  • Constructor Details

    • Objects

      public Objects()
  • Method Details

    • equals

      public static boolean equals(Object o1, Object o2)
      Compare two references for equality.
      Parameters:
      o1 - the first object reference
      o2 - the second object reference
      Returns:
      true if equal, false otherwise
    • equalsDeep

      public static boolean equalsDeep(Object o1, Object o2)
      Deeply compare two references for equality. This dives down into arrays, including nested arrays.
      Parameters:
      o1 - the first object reference
      o2 - the second object reference
      Returns:
      true if deeply equal, false otherwise