@Test public void testIsNullOrEmptyAwareEqual_3() { Assert.assertTrue(ComparisonUtil.isNullOrEmptyAwareEqual(new ArrayList<String>(1), null)); }
public static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo) { final boolean checkResult; if (targetOne == null || targetOne.isEmpty()) { checkResult = targetTwo == null || targetTwo.isEmpty(); } else { checkResult = targetOne.equals(targetTwo); } return checkResult; }
ComparisonUtil { public static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo) { final boolean checkResult; if (targetOne == null || targetOne.isEmpty()) { checkResult = targetTwo == null || targetTwo.isEmpty(); } else { checkResult = targetOne.equals(targetTwo); } return checkResult; } }
ComparisonUtil { public static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo) { final boolean checkResult; if (targetOne == null || targetOne.isEmpty()) { checkResult = targetTwo == null || targetTwo.isEmpty(); } else { checkResult = targetOne.equals(targetTwo); } return checkResult; }  }
ComparisonUtil { public static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo) { final boolean checkResult; if (targetOne == null || targetOne.isEmpty()) { checkResult = targetTwo == null || targetTwo.isEmpty(); } else { checkResult = targetOne.equals(targetTwo); } return checkResult; }  static boolean isNullAwareEqual(final Object targetOne, final Object targetTwo); static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo); static boolean isNullOrEmptyAwareEqual(final List<?> targetOne, final List<?> targetTwo); static int compareNullAware(final T targetOne, final T targetTwo); }
ComparisonUtil { public static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo) { final boolean checkResult; if (targetOne == null || targetOne.isEmpty()) { checkResult = targetTwo == null || targetTwo.isEmpty(); } else { checkResult = targetOne.equals(targetTwo); } return checkResult; }  static boolean isNullAwareEqual(final Object targetOne, final Object targetTwo); static boolean isNullOrEmptyAwareEqual(final String targetOne, final String targetTwo); static boolean isNullOrEmptyAwareEqual(final List<?> targetOne, final List<?> targetTwo); static int compareNullAware(final T targetOne, final T targetTwo);  }