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

    Modifier and Type
    Method
    Description
    void
    forEach(Consumer<? super A> consumer)
    Perform the given Consumer (side-effect) for each contained element.
  • Method Details

    • forEach

      void forEach(Consumer<? super A> consumer)
      Perform the given Consumer (side-effect) for each contained element.
      Parameters:
      consumer - the Consumer to apply on each element