Interface JsMap.ForEachCallback<K,V>

Type Parameters:
K - the key type
V - the value type
Enclosing class:
JsMap<K,V>
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 JsMap.ForEachCallback<K,V>
Functional interface for iterating all the entries in a JsMap.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    accept(V value, K key)
    Receives one key-value pair.
  • Method Details

    • accept

      void accept(V value, K key)
      Receives one key-value pair.
      Parameters:
      value - the value
      key - the key