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 ofObjLongConsumerthat allows throwing checked exceptions.ThrowingObjLongConsumeris 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 voidaccept(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)
-
-