@Test public void elementsAreEqual() throws Exception { String ignoreCaseTrue = "true"; String ignoreCaseFalse = "false"; assertTrue(ListProcessor.elementsAreEqual("A", "a", Boolean.parseBoolean(ignoreCaseTrue))); assertFalse(ListProcessor.elementsAreEqual("A", "a", Boolean.parseBoolean(ignoreCaseFalse))); }
public static boolean elementsAreEqual(String a, String b, boolean ignoreCase) { return ignoreCase ? StringUtils.equalsIgnoreCase(a, b) : StringUtils.equals(a, b); }
ListProcessor { public static boolean elementsAreEqual(String a, String b, boolean ignoreCase) { return ignoreCase ? StringUtils.equalsIgnoreCase(a, b) : StringUtils.equals(a, b); } }
ListProcessor { public static boolean elementsAreEqual(String a, String b, boolean ignoreCase) { return ignoreCase ? StringUtils.equalsIgnoreCase(a, b) : StringUtils.equals(a, b); }  }
ListProcessor { public static boolean elementsAreEqual(String a, String b, boolean ignoreCase) { return ignoreCase ? StringUtils.equalsIgnoreCase(a, b) : StringUtils.equals(a, b); }  static String[] toArray(String list, String delimiter); static int getIndex(String index, int listLength); static String[] reverse(String[] list); static int[] reverse(int[] list); static double[] reverse(double[] list); static int[] toIntArray(String list, String delimiter); static double[] toDoubleArray(String list, String delimiter); static String toString(double[] list, String delimiter); static String toString(int[] list, String delimiter); static String toString(String[] list, String delimiter); static String[] sort(String[] unsorted); static int[] sort(int[] unsorted); static double[] sort(double[] unsorted); static int[] trimPercent(int[] array, int percent); static String[] trimPercent(String[] array, int percent); static double[] trimPercent(double[] array, int percent); static boolean arrayElementsAreNull(String[] uncontainedArray); static String[] getUncontainedArray(String[] subArray, String[] containerArray, boolean ignoreCase); static boolean elementsAreEqual(String a, String b, boolean ignoreCase); }
ListProcessor { public static boolean elementsAreEqual(String a, String b, boolean ignoreCase) { return ignoreCase ? StringUtils.equalsIgnoreCase(a, b) : StringUtils.equals(a, b); }  static String[] toArray(String list, String delimiter); static int getIndex(String index, int listLength); static String[] reverse(String[] list); static int[] reverse(int[] list); static double[] reverse(double[] list); static int[] toIntArray(String list, String delimiter); static double[] toDoubleArray(String list, String delimiter); static String toString(double[] list, String delimiter); static String toString(int[] list, String delimiter); static String toString(String[] list, String delimiter); static String[] sort(String[] unsorted); static int[] sort(int[] unsorted); static double[] sort(double[] unsorted); static int[] trimPercent(int[] array, int percent); static String[] trimPercent(String[] array, int percent); static double[] trimPercent(double[] array, int percent); static boolean arrayElementsAreNull(String[] uncontainedArray); static String[] getUncontainedArray(String[] subArray, String[] containerArray, boolean ignoreCase); static boolean elementsAreEqual(String a, String b, boolean ignoreCase);  }