@Test public void testObject2() throws Exception { final Pair<String, String> pair1 = new Pair("A", "D"); assertTrue(pair1.getObject2() instanceof String); assertTrue("D".equalsIgnoreCase(pair1.getObject2())); }
public V getObject2() { return value; }
Pair implements Serializable { public V getObject2() { return value; } }
Pair implements Serializable { public V getObject2() { return value; } Pair(K key, V value); }
Pair implements Serializable { public V getObject2() { return value; } Pair(K key, V value); K getKey(); void setKey(K key); V getValue(); void setValue(V value); K getObject1(); V getObject2(); @Override int hashCode(); @SuppressWarnings("rawtypes") @Override boolean equals(Object obj); @Override String toString(); }
Pair implements Serializable { public V getObject2() { return value; } Pair(K key, V value); K getKey(); void setKey(K key); V getValue(); void setValue(V value); K getObject1(); V getObject2(); @Override int hashCode(); @SuppressWarnings("rawtypes") @Override boolean equals(Object obj); @Override String toString();  }