T
- see ObjIntConsumer
@FunctionalInterface public interface ThrowingObjIntConsumer<T>
ObjIntConsumer
that allows throwing checked exceptions. ThrowingObjIntConsumer
is usually implemented by a lambda and passed to CheckedExceptionHandler.fromObjIntConsumer(ThrowingObjIntConsumer)
. See noexception tutorial.
Modifier and Type | Method and Description |
---|---|
void |
accept(T t, int value)
Variation of ObjIntConsumer.accept(Object, int) that allows throwing checked exceptions.
|
void accept(T t, int value) throws Throwable
ObjIntConsumer.accept(Object, int)
that allows throwing checked exceptions.
t
- see ObjIntConsumer.accept(Object, int)
value
- see ObjIntConsumer.accept(Object, int)
Throwable
- if unable to complete
CheckedExceptionHandler.fromObjIntConsumer(ThrowingObjIntConsumer)
, ObjIntConsumer.accept(Object, int)
Copyright © 2017–2020 Robert Važan. All rights reserved.