Package io.atlassian.fugue
Interface Applicant<A>
-
- Type Parameters:
A- the type of thing to supply to the effect.
- 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 Applicant<A>A thing upon which side-effects may be applied.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidforEach(java.util.function.Consumer<? super A> consumer)Perform the givenConsumer(side-effect) for each contained element.
-
-
-
Method Detail
-
forEach
void forEach(java.util.function.Consumer<? super A> consumer)
Perform the givenConsumer(side-effect) for each contained element.- Parameters:
consumer- theConsumerto apply on each element
-
-