Module org.scijava.function
Package org.scijava.function
Interface Consumers.Arity5<I1,I2,I3,I4,I5>
-
- Type Parameters:
I1- the type of argument 1.I2- the type of argument 2.I3- the type of argument 3.I4- the type of argument 4.I5- the type of argument 5.
- All Known Subinterfaces:
Computers.Arity4<I1,I2,I3,I4,O>,Computers.Arity4_1<O,I1,I2,I3,I4>,Computers.Arity4_2<I1,O,I2,I3,I4>,Computers.Arity4_3<I1,I2,O,I3,I4>,Computers.Arity4_4<I1,I2,I3,O,I4>,Inplaces.Arity5<IO1,IO2,IO3,IO4,IO5>,Inplaces.Arity5_1<IO,I2,I3,I4,I5>,Inplaces.Arity5_2<I1,IO,I3,I4,I5>,Inplaces.Arity5_3<I1,I2,IO,I4,I5>,Inplaces.Arity5_4<I1,I2,I3,IO,I5>,Inplaces.Arity5_5<I1,I2,I3,I4,IO>
- Enclosing class:
- Consumers
- 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 static interface Consumers.Arity5<I1,I2,I3,I4,I5>
Represents an operation that accepts 5 input arguments and returns no result. This is the 5-arity specialization ofConsumer. Unlike most other functional interfaces, this interface is expected to operate via side-effects.This is a functional interface whose functional method is
accept(Object, Object, Object, Object, Object).- See Also:
Consumer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaccept(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5)Performs this operation on the given arguments.default Consumers.Arity5<I1,I2,I3,I4,I5>andThen(Consumers.Arity5<? super I1,? super I2,? super I3,? super I4,? super I5> after)Returns a composedConsumer.Arity5that performs, in sequence, this operation followed by theafteroperation.
-
-
-
Method Detail
-
accept
void accept(I1 in1, I2 in2, I3 in3, I4 in4, I5 in5)
Performs this operation on the given arguments.- Parameters:
in1- input argument 1.in2- input argument 2.in3- input argument 3.in4- input argument 4.in5- input argument 5.
-
andThen
default Consumers.Arity5<I1,I2,I3,I4,I5> andThen(Consumers.Arity5<? super I1,? super I2,? super I3,? super I4,? super I5> after)
Returns a composedConsumer.Arity5that performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after- the operation to perform after this operation- Returns:
- a composed
Consumer.Arity5that performs in sequence this operation followed by theafteroperation - Throws:
NullPointerException- ifafteris null
-
-