@FunctionalInterface public interface ThrowingIntSupplier
IntSupplier
that allows throwing checked exceptions. ThrowingIntSupplier
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromIntSupplier(ThrowingIntSupplier)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
int |
getAsInt()
Variation of IntSupplier.getAsInt() that allows throwing checked exceptions.
|
int getAsInt() throws Throwable
IntSupplier.getAsInt()
that allows throwing checked exceptions.
IntSupplier.getAsInt()
Throwable
- if unable to complete
CheckedExceptionHandler.fromIntSupplier(ThrowingIntSupplier)
, IntSupplier.getAsInt()
Copyright © 2017–2020 Robert Važan. All rights reserved.