@Test public void testObject1() throws Exception { final Pair<String, String> pair1 = new Pair("A", "D"); assertTrue(pair1.getObject1() instanceof String); assertTrue("A".equalsIgnoreCase(pair1.getObject1())); }
public K getObject1() { return key; }
Pair implements Serializable { public K getObject1() { return key; } }
Pair implements Serializable { public K getObject1() { return key; } Pair(K key, V value); }
Pair implements Serializable { public K getObject1() { return key; } 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 K getObject1() { return key; } 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();  }