@Test public void testGetSecond() { Pair<Integer,String> pair = new Pair<>(25, "twenty-five"); assertEquals("twenty-five", pair.getSecond()); }
public B getSecond() { return second; }
Pair { public B getSecond() { return second; } }
Pair { public B getSecond() { return second; } Pair(A f, B s); }
Pair { public B getSecond() { return second; } Pair(A f, B s); @Override int hashCode(); @Override boolean equals(Object o); A getFirst(); B getSecond(); @Override String toString(); String toString(String prefix, String separator, String suffix); Entry<A,B> toMapEntry(); Pair<B,A> swap(); static Pair<K2,V2> fromEntry(Entry<K1,V1> entry); }
Pair { public B getSecond() { return second; } Pair(A f, B s); @Override int hashCode(); @Override boolean equals(Object o); A getFirst(); B getSecond(); @Override String toString(); String toString(String prefix, String separator, String suffix); Entry<A,B> toMapEntry(); Pair<B,A> swap(); static Pair<K2,V2> fromEntry(Entry<K1,V1> entry);  }