@Test public void pair() { final Pair<String, String> p = Pair.of("key", "value"); assertThat(p.getKey(), is("key")); assertThat(p.getValue(), is("value")); }
private Pair(final K key, final V value) { this.key = checkNotNull(key); this.value = checkNotNull(value); }
Pair { private Pair(final K key, final V value) { this.key = checkNotNull(key); this.value = checkNotNull(value); } }
Pair { private Pair(final K key, final V value) { this.key = checkNotNull(key); this.value = checkNotNull(value); } private  Pair(final K key, final V value); }
Pair { private Pair(final K key, final V value) { this.key = checkNotNull(key); this.value = checkNotNull(value); } private  Pair(final K key, final V value); static Pair<K, V> of(final K key, final V value); K getKey(); V getValue(); @Override String toString(); }
Pair { private Pair(final K key, final V value) { this.key = checkNotNull(key); this.value = checkNotNull(value); } private  Pair(final K key, final V value); static Pair<K, V> of(final K key, final V value); K getKey(); V getValue(); @Override String toString();  }