@FunctionalInterface public interface LongToBool extends LongToBoolE<RuntimeException>, LongPredicate
(long) -> boolean.| Modifier and Type | Method and Description |
|---|---|
default NilToBool |
bind(long l)
Binds
(l) to this, returning a new function
of type () -> boolean. |
static NilToBool |
bind(LongToBool f,
long l)
Binds
(l) to f, returning a new function
of type () -> boolean. |
default boolean |
test(long l)
Allows
this to act as a LongPredicate. |
static <E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
LongToBoolE<E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <E extends Exception> |
unchecked(LongToBoolE<E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <E extends IOException> |
uncheckedIO(LongToBoolE<E> f)
|
bind, calland, negate, orstatic <E extends Exception> LongToBool unchecked(Function<? super E,RuntimeException> toRuntime, LongToBoolE<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
LongToBoolE.call(long), 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> LongToBool unchecked(LongToBoolE<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> LongToBool uncheckedIO(LongToBoolE<E> f)
E - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic NilToBool bind(LongToBool f, long l)
(l) to f, returning a new function
of type () -> boolean.f - the unbound functionl - the argument() -> boolean that calls
f.call(l) and returns the result.default NilToBool bind(long l)
(l) to this, returning a new function
of type () -> boolean.bind in interface LongToBoolE<RuntimeException>l - the argument() -> boolean that calls
this.call(l) and returns the result.default boolean test(long l)
this to act as a LongPredicate.test in interface LongPredicatel - the argumentCopyright © 2015. All rights reserved.