| 5 | package onjava; |
| 6 | |
| 7 | public 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected