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
      void forEach​(java.util.function.Consumer<? super A> consumer)
      Perform the given Consumer (side-effect) for each contained element.
    • Method Detail

      • forEach

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