Class ComparisonUtils

java.lang.Object
org.jppf.utils.ComparisonUtils

public final class ComparisonUtils extends Object
A set of utility methods to facilitate concurrent and multithreaded rpogramming.
Since:
5.0
Author:
Laurent Cohen
  • Method Details

    • equalStrings

      public static boolean equalStrings(String s1, String s2)
      Determine whether the specified strigns are equal.
      Parameters:
      s1 - the first string to compare.
      s2 - the second string to compare.
      Returns:
      true if the two strings are equal, false otherwise.
    • equalIntArrays

      public static boolean equalIntArrays(int[] a1, int[] a2)
      Determine whether the specified strigns are equal.
      Parameters:
      a1 - the first array to compare.
      a2 - the second array to compare.
      Returns:
      true if the two strings are equal, false otherwise.