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