Interface Effect.Applicant<A>

Type Parameters:
A - the type of thing to supply to the effect.
All Known Subinterfaces:
Either.Projection<A,B,L,R>, Maybe<A>
All Known Implementing Classes:
Either.AbstractProjection, Either.LeftProjection, Either.RightProjection, Option, Option.None, Option.Some
Enclosing interface:
Effect<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 static interface Effect.Applicant<A>
Deprecated.
in favour of Iterable
A thing upon which side-effects may be applied.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    foreach(Effect<? super A> effect)
    Deprecated.
    extend or implement Iterable.forEach(Consumer) instead
  • Method Details

    • foreach

      @Deprecated void foreach(Effect<? super A> effect)
      Deprecated.
      extend or implement Iterable.forEach(Consumer) instead
      Perform the given side-effect for each contained element.
      Parameters:
      effect - the input to use for performing the effect.