com.sun.tools.javac.util
Class Pair<A,B>
java.lang.Object
com.sun.tools.javac.util.Pair<A,B>
public class Pair<A,B>
- extends java.lang.Object
A generic class for pairs.
This is NOT part of any API supported by Sun Microsystems. If
you write code that depends on this, you do so at your own risk.
This code and its internal interfaces are subject to change or
deletion without notice.
|
Constructor Summary |
Pair(A fst,
B snd)
|
|
Method Summary |
boolean |
equals(java.lang.Object other)
|
private static boolean |
equals(java.lang.Object x,
java.lang.Object y)
|
int |
hashCode()
|
static
|
of(A a,
B b)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
fst
public final A fst
snd
public final B snd
Pair
public Pair(A fst,
B snd)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
equals
private static boolean equals(java.lang.Object x,
java.lang.Object y)
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
of
public static <A,B> Pair<A,B> of(A a,
B b)