Module com.machinezoo.noexception
Interface ThrowingObjLongConsumer<T>
-
- Type Parameters:
-
T
- seeObjLongConsumer
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface ThrowingObjLongConsumer<T>
Variation ofObjLongConsumer
that allows throwing checked exceptions.ThrowingObjLongConsumer
is usually implemented by a lambda and passed toCheckedExceptionHandler.fromObjLongConsumer(ThrowingObjLongConsumer)
. See noexception tutorial.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t, long value)
Variation ofObjLongConsumer.accept(Object, long)
that allows throwing checked exceptions.
-
-
-
Method Detail
-
accept
void accept(T t, long value) throws Throwable
Variation ofObjLongConsumer.accept(Object, long)
that allows throwing checked exceptions.- Parameters:
-
t
- seeObjLongConsumer.accept(Object, long)
-
value
- seeObjLongConsumer.accept(Object, long)
- Throws:
-
Throwable
- if unable to complete - See Also:
-
CheckedExceptionHandler.fromObjLongConsumer(ThrowingObjLongConsumer)
,ObjLongConsumer.accept(Object, long)
-
-