public class Pair<A,B>
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <A,B> Pair<A,B> |
create(A first,
B second) |
boolean |
equals(java.lang.Object obj) |
A |
first() |
int |
hashCode() |
static <A,B> Pair<A,B> |
of(A a,
B b) |
B |
second() |
java.lang.String |
toString() |
public A first()
public B second()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static <A,B> Pair<A,B> create(A first, B second)
public static <A,B> Pair<A,B> of(A a, B b)
public java.lang.String toString()
toString
in class java.lang.Object