final class Erase
extends java.lang.Object
IOException
for the compiler but still throws that exception at runtime.Modifier | Constructor and Description |
---|---|
private |
Erase()
No instances.
|
Modifier and Type | Method and Description |
---|---|
(package private) static <T,U> void |
accept(IOBiConsumer<T,U> consumer,
T t,
U u)
Delegates to the given
IOBiConsumer but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T> void |
accept(IOConsumer<T> consumer,
T t)
Delegates to the given
IOConsumer but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T,U,R> R |
apply(IOBiFunction<? super T,? super U,? extends R> mapper,
T t,
U u)
Delegates to the given
IOBiFunction but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T,R> R |
apply(IOFunction<? super T,? extends R> mapper,
T t)
Delegates to the given
IOFunction but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T> int |
compare(IOComparator<? super T> comparator,
T t,
T u)
Delegates to the given
IOComparator but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T> T |
get(IOSupplier<T> supplier)
Delegates to the given
IOSupplier but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T extends java.lang.Throwable> |
rethrow(java.lang.Throwable throwable)
Throws the given throwable.
|
(package private) static void |
run(IORunnable runnable)
Delegates to the given
IORunnable but erases its IOException for the compiler, while still throwing
the exception at runtime. |
(package private) static <T> boolean |
test(IOPredicate<? super T> predicate,
T t)
Delegates to the given
IOPredicate but erases its IOException for the compiler, while still throwing
the exception at runtime. |
static <T,U> void accept(IOBiConsumer<T,U> consumer, T t, U u)
IOBiConsumer
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.U
- See delegate.consumer
- See delegate.t
- See delegate.u
- See delegate.IOBiConsumer
static <T> void accept(IOConsumer<T> consumer, T t)
IOConsumer
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.consumer
- See delegate.t
- See delegate.IOConsumer
static <T,U,R> R apply(IOBiFunction<? super T,? super U,? extends R> mapper, T t, U u)
IOBiFunction
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.U
- See delegate.R
- See delegate.mapper
- See delegate.t
- See delegate.u
- See delegate.IOBiFunction
static <T,R> R apply(IOFunction<? super T,? extends R> mapper, T t)
IOFunction
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.R
- See delegate.mapper
- See delegate.t
- See delegate.IOFunction
static <T> int compare(IOComparator<? super T> comparator, T t, T u)
IOComparator
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.comparator
- See delegate.t
- See delegate.u
- See delegate.IOComparator
static <T> T get(IOSupplier<T> supplier)
IOSupplier
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.supplier
- See delegate.IOSupplier
static <T extends java.lang.Throwable> java.lang.RuntimeException rethrow(java.lang.Throwable throwable) throws T extends java.lang.Throwable
T
- The throwable cast type.throwable
- The throwable to rethrow.T
- Always thrown.T extends java.lang.Throwable
static void run(IORunnable runnable)
IORunnable
but erases its IOException
for the compiler, while still throwing
the exception at runtime.runnable
- See delegate.IORunnable
static <T> boolean test(IOPredicate<? super T> predicate, T t)
IOPredicate
but erases its IOException
for the compiler, while still throwing
the exception at runtime.T
- See delegate.predicate
- See delegate.t
- See delegate.IOPredicate