@FunctionalInterface public interface IntToBool extends IntToBoolE<RuntimeException>, IntPredicate
(int) -> boolean.| Modifier and Type | Method and Description |
|---|---|
default NilToBool |
bind(int i)
Binds
(i) to this, returning a new function
of type () -> boolean. |
static NilToBool |
bind(IntToBool f,
int i)
Binds
(i) to f, returning a new function
of type () -> boolean. |
default boolean |
test(int i)
Allows
this to act as a IntPredicate. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
IntToBoolE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends Exception> |
unchecked(IntToBoolE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends IOException> |
uncheckedIO(IntToBoolE<E> f)
|
bind, calland, negate, orstatic <E extends Exception> IntToBool unchecked(Function<? super E,RuntimeException> toRuntime, IntToBoolE<E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.E - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
IntToBoolE.call(int), then this function
is called in in order to convert it to a RuntimeExceptionf - the operation to wrapf that does not throw checked exceptionsstatic <E extends Exception> IntToBool unchecked(IntToBoolE<E> f)
f that wraps any checked Exception with a
RuntimeException.E - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <E extends IOException> IntToBool uncheckedIO(IntToBoolE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic NilToBool bind(IntToBool f, int i)
(i) to f, returning a new function
of type () -> boolean.f - the unbound functioni - the argument() -> boolean that calls
f.call(i) and returns the result.default NilToBool bind(int i)
(i) to this, returning a new function
of type () -> boolean.bind in interface IntToBoolE<RuntimeException>i - the argument() -> boolean that calls
this.call(i) and returns the result.default boolean test(int i)
this to act as a IntPredicate.test in interface IntPredicatei - the argumentCopyright © 2015. All rights reserved.