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