Package org.jppf.utils
Class ComparisonUtils
java.lang.Object
org.jppf.utils.ComparisonUtils
A set of utility methods to facilitate concurrent and multithreaded rpogramming.
- Since:
- 5.0
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanequalIntArrays(int[] a1, int[] a2) Determine whether the specified strigns are equal.static booleanequalStrings(String s1, String s2) Determine whether the specified strigns are equal.
-
Method Details
-
equalStrings
Determine whether the specified strigns are equal.- Parameters:
s1- the first string to compare.s2- the second string to compare.- Returns:
trueif the two strings are equal,falseotherwise.
-
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:
trueif the two strings are equal,falseotherwise.
-