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