Class Pair<K,V>

java.lang.Object
co.elastic.clients.util.Pair<K,V>

public class Pair<K,V> extends Object
A key/value pair. Used to represent pairs where the name is not a string (generally an enum).

The key must have a string representation in JSON.

  • Constructor Details

    • Pair

      public Pair(K name, V value)
  • Method Details