MCPcopy Index your code
hub / github.com/BruceEckel/OnJava8-Examples / Pair

Class Pair

onjava/Pair.java:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5package onjava;
6
7public class Pair<K, V> {
8 public final K key;
9 public final V value;
10 public Pair(K k, V v) {
11 key = k;
12 value = v;
13 }
14 public K key() { return key; }
15 public V value() { return value; }
16 public static <K,V> Pair<K, V> make(K k, V v) {
17 return new Pair<K,V>(k, v);
18 }
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected