@Test void containsDifferentShouldReturnFalseWhenSameValue() { assertThat(OptionalUtils.containsDifferent(Optional.of("any"), "any")).isFalse(); }
public static <T> boolean containsDifferent(Optional<T> requestValue, T storeValue) { return requestValue .filter(Predicate.not(Predicate.isEqual(storeValue))) .isPresent(); }
OptionalUtils { public static <T> boolean containsDifferent(Optional<T> requestValue, T storeValue) { return requestValue .filter(Predicate.not(Predicate.isEqual(storeValue))) .isPresent(); } }
OptionalUtils { public static <T> boolean containsDifferent(Optional<T> requestValue, T storeValue) { return requestValue .filter(Predicate.not(Predicate.isEqual(storeValue))) .isPresent(); }  }
OptionalUtils { public static <T> boolean containsDifferent(Optional<T> requestValue, T storeValue) { return requestValue .filter(Predicate.not(Predicate.isEqual(storeValue))) .isPresent(); }  static Optional<T> executeIfEmpty(Optional<T> optional, Operation operation); static boolean containsDifferent(Optional<T> requestValue, T storeValue); static boolean matches(Optional<T> optional1, Optional<U> optional2, BiPredicate<T, U> biPredicate); }
OptionalUtils { public static <T> boolean containsDifferent(Optional<T> requestValue, T storeValue) { return requestValue .filter(Predicate.not(Predicate.isEqual(storeValue))) .isPresent(); }  static Optional<T> executeIfEmpty(Optional<T> optional, Operation operation); static boolean containsDifferent(Optional<T> requestValue, T storeValue); static boolean matches(Optional<T> optional1, Optional<U> optional2, BiPredicate<T, U> biPredicate);  }