Package com.hazelcast.function
Interface BiConsumerEx<T,U>
- Type Parameters:
T
- the type of the first argument to the operationU
- the type of the second argument to the operation
- All Superinterfaces:
BiConsumer<T,U>
,Serializable
- 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 BiConsumerEx<T,U> extends BiConsumer<T,U>, Serializable
Serializable
variant of java.util.function.BiConsumer
which declares checked exception.- Since:
- 4.0
-
Method Summary
Modifier and Type Method Description default void
accept(T t, U u)
void
acceptEx(T t, U u)
Exception-declaring version ofBiConsumer.accept(T, U)
.default BiConsumerEx<T,U>
andThen(BiConsumerEx<? super T,? super U> after)
Serializable
variant ofjava.util.function.BiConsumer#andThen(BiConsumer)
.
-
Method Details
-
acceptEx
Exception-declaring version ofBiConsumer.accept(T, U)
.- Throws:
Exception
- in case of any exceptional case
-
accept
- Specified by:
accept
in interfaceBiConsumer<T,U>
-
andThen
Serializable
variant ofjava.util.function.BiConsumer#andThen(BiConsumer)
.
-