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