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:
java.util.function.BiConsumer<T,U>
,java.io.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 java.util.function.BiConsumer<T,U>, java.io.Serializable
Serializable
variant ofjava.util.function.BiConsumer
which declares checked exception.- Since:
- 4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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 Detail
-
acceptEx
void acceptEx(T t, U u) throws java.lang.Exception
Exception-declaring version ofBiConsumer.accept(T, U)
.- Throws:
java.lang.Exception
- in case of any exceptional case
-
andThen
default BiConsumerEx<T,U> andThen(BiConsumerEx<? super T,? super U> after)
Serializable
variant ofjava.util.function.BiConsumer#andThen(BiConsumer)
.
-
-