@InterfaceStability.Unstable public final class Tuples extends Object
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map.Entry<K,V> |
pair(K key,
V value)
Create a 2-tuple.
|
public static <K,V> Map.Entry<K,V> pair(K key, V value)
K - element 1 typeV - element 2 typekey - element 1value - element 2Copyright © 2008–2025 Apache Software Foundation. All rights reserved.