A
B
public class Pair<A,B> extends Object
Pair describes a simple tuple.
Pair
This is useful in scenarios where two items need to be grouped, or a method requires two return values. In these scenarios, Pair reduces code bloat by avoiding the creation of small simple DTO classes.
Pair(A a, B b)
boolean
equals(Object obj)
getA()
getB()
int
hashCode()
String
toString()
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public Pair(A a, B b)
public A getA()
public B getB()
public int hashCode()
hashCode
Object
public boolean equals(Object obj)
equals
public String toString()
toString
Copyright © 2013 Atomic Leopard. All Rights Reserved.