Interface JsConsumer<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@JsFunction @FunctionalInterface public interface JsConsumer<T>
A js-friendly Consumer FunctionalInterface
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    apply(T value)
     
    static <T> JsConsumer<T>
     
  • Method Details

    • doNothing

      @JsOverlay static <T> JsConsumer<T> doNothing()
    • apply

      void apply(T value)