Knopflerfish OSGi 5.2.0

org.knopflerfish.util
Class Compare

java.lang.Object
  extended by org.knopflerfish.util.Compare

public class Compare
extends java.lang.Object


Constructor Summary
Compare()
           
 
Method Summary
static boolean compareByteArrays(byte[] a, byte[] a2)
          Returns true if the two specified arrays of bytes are equal to one another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compare

public Compare()
Method Detail

compareByteArrays

public static boolean compareByteArrays(byte[] a,
                                        byte[] a2)
Returns true if the two specified arrays of bytes are equal to one another. Two arrays are considered equal if both arrays contain the same number of elements, and all corresponding pairs of elements in the two arrays are equal. In other words, two arrays are equal if they contain the same elements in the same order. Also, two array references are considered equal if both are null.

Parameters:
a - One array to be tested for equality.
a2 - The other array to be tested for equality.
Returns:
true if the two arrays are equal.

Knopflerfish OSGi 5.2.0