public class Pair<A,B>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
A |
fst
The fst component.
|
B |
snd
The snd component.
|
public static <A,B> Pair<A,B> of(A a, B b)
A
- type variable for the type of the fst componentB
- type variable for the type of the snd componenta
- a fst componentb
- a snd componenta
and b
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object