Package io.atlassian.fugue
Interface Effect<A>
-
- Type Parameters:
A- the type that this Effect takes as input
- All Superinterfaces:
java.util.function.Consumer<A>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Deprecated @FunctionalInterface public interface Effect<A> extends java.util.function.Consumer<A>Deprecated.in favour ofConsumerA thing that performs a side-effect.- Since:
- 1.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceEffect.Applicant<A>Deprecated.in favour ofIterable
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidaccept(A a)Deprecated.Adapt to the Java 8 interface.voidapply(A a)Deprecated.Perform the side-effect.
-
-
-
Method Detail
-
apply
void apply(A a)
Deprecated.Perform the side-effect.- Parameters:
a- the input to use for performing the effect.
-
-