Interface JsCollections.ForEachCallback<V>

Type Parameters:
V - the value type
Enclosing class:
JsCollections
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface @JsFunction public static interface JsCollections.ForEachCallback<V>
Functional interface for iterating all the entries in a JsSet or JsArray.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(V value)
    Receives one value.
  • Method Details

    • accept

      void accept(V value)
      Receives one value.
      Parameters:
      value - the value