Fix boxing/unboxing.
This commit is contained in:
parent
fb184a7650
commit
94d5208dd9
|
@ -463,7 +463,7 @@ public class Failable {
|
||||||
*/
|
*/
|
||||||
public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredicate<O1, O2, T> predicate,
|
public static <O1, O2, T extends Throwable> boolean test(final FailableBiPredicate<O1, O2, T> predicate,
|
||||||
final O1 object1, final O2 object2) {
|
final O1 object1, final O2 object2) {
|
||||||
return get(() -> predicate.test(object1, object2));
|
return getAsBoolean(() -> predicate.test(object1, object2));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -476,7 +476,7 @@ public class Failable {
|
||||||
* @return the boolean value returned by the predicate
|
* @return the boolean value returned by the predicate
|
||||||
*/
|
*/
|
||||||
public static <O, T extends Throwable> boolean test(final FailablePredicate<O, T> predicate, final O object) {
|
public static <O, T extends Throwable> boolean test(final FailablePredicate<O, T> predicate, final O object) {
|
||||||
return get(() -> predicate.test(object));
|
return getAsBoolean(() -> predicate.test(object));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue