Package com.globalmentor.io.function
Interface IOObjIntConsumer<T>
-
- Type Parameters:
T
- the type of the object argument to the operation
- 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 IOObjIntConsumer<T>
Represents an operation that accepts an object-valued and aint
-valued argument, and returns no result. This is the(reference, int)
specialization ofIOBiConsumer
. Unlike most other functional interfaces,ObjIntConsumer
is expected to operate via side-effects.This interface is similar to
ObjIntConsumer
except that it is allowed to throw anIOException
.- Author:
- Magno N A Cruz
- See Also:
IOBiConsumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
accept(T t, int value)
This method is the same asObjIntConsumer.accept(Object, int)
, but with a support forIOException
.
-
-
-
Method Detail
-
accept
void accept(T t, int value) throws java.io.IOException
This method is the same as
ObjIntConsumer.accept(Object, int)
, but with a support forIOException
.- Parameters:
t
- The first input argument.value
- The second input argument.- Throws:
java.io.IOException
- if there is an I/O error performing the operation.
-
-