org.qedeq.base.utility
Class EqualsUtility

java.lang.Object
  extended by org.qedeq.base.utility.EqualsUtility

public final class EqualsUtility
extends java.lang.Object

A collection of useful static methods for equality.

Author:
Michael Meyling

Method Summary
static boolean equals(byte[] a, byte[] b)
          Compare two objects, each of them could be null.
static boolean equals(int[] a, int[] b)
          Compare two objects, each of them could be null.
static boolean equals(java.lang.Object[] a, java.lang.Object[] b)
          Compare two objects, each of them could be null.
static boolean equals(java.lang.Object a, java.lang.Object b)
          Compare two objects, each of them could be null.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public static boolean equals(java.lang.Object a,
                             java.lang.Object b)
Compare two objects, each of them could be null.

Parameters:
a - First parameter.
b - Second parameter.
Returns:
Are a and b equal?

equals

public static boolean equals(java.lang.Object[] a,
                             java.lang.Object[] b)
Compare two objects, each of them could be null.

Parameters:
a - First parameter.
b - Second parameter.
Returns:
Are a and b equal?

equals

public static boolean equals(byte[] a,
                             byte[] b)
Compare two objects, each of them could be null.

Parameters:
a - First parameter.
b - Second parameter.
Returns:
Are a and b equal?

equals

public static boolean equals(int[] a,
                             int[] b)
Compare two objects, each of them could be null.

Parameters:
a - First parameter.
b - Second parameter.
Returns:
Are a and b equal?


Copyright © 2014. All Rights Reserved.