R - the type of the return value@FunctionalInterface public interface LongToObj<R> extends LongToObjE<R,RuntimeException>, LongFunction<R>
(long) -> R.| Modifier and Type | Method and Description |
|---|---|
default R |
apply(long l)
Allows
this to act as a LongFunction<R>. |
default NilToObj<R> |
bind(long l)
Binds
(l) to this, returning a new function
of type () -> R. |
static <R> NilToObj<R> |
bind(LongToObj<R> f,
long l)
Binds
(l) to f, returning a new function
of type () -> R. |
static <R,E extends Exception> |
unchecked(Function<? super E,RuntimeException> toRuntime,
LongToObjE<R,E> f)
Returns a wrapped version of
f that uses toRuntime to convert any checked
Exception to a RuntimeException. |
static <R,E extends Exception> |
unchecked(LongToObjE<R,E> f)
Returns a wrapped version of
f that wraps any checked Exception with a
RuntimeException. |
static <R,E extends IOException> |
uncheckedIO(LongToObjE<R,E> f)
|
bind, callstatic <R,E extends Exception> LongToObj<R> unchecked(Function<? super E,RuntimeException> toRuntime, LongToObjE<R,E> f)
f that uses toRuntime to convert any checked
Exception to a RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwtoRuntime - if a checked exception is thrown from
LongToObjE.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 <R,E extends Exception> LongToObj<R> unchecked(LongToObjE<R,E> f)
f that wraps any checked Exception with a
RuntimeException.R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that does not throw checked exceptionsstatic <R,E extends IOException> LongToObj<R> uncheckedIO(LongToObjE<R,E> f)
R - the type of the return valueE - the Exception type that the operation may throwf - the operation to wrapf that throws UncheckedIOException instead of
IOExceptionstatic <R> NilToObj<R> bind(LongToObj<R> f, long l)
(l) to f, returning a new function
of type () -> R.R - the type of the return valuef - the unbound functionl - the argument() -> R that calls
f.call(l) and returns the result.default NilToObj<R> bind(long l)
(l) to this, returning a new function
of type () -> R.bind in interface LongToObjE<R,RuntimeException>l - the argument() -> R that calls
this.call(l) and returns the result.default R apply(long l)
this to act as a LongFunction<R>.apply in interface LongFunction<R>l - the argumentCopyright © 2015. All rights reserved.