A - The type of left values.B - The type of right values.@EqualityStructural public final class Pair<A,B> extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
A |
getLeft() |
B |
getRight() |
int |
hashCode() |
static <A,B> Pair<A,B> |
pair(A left,
B right)
Return a new pair
(left, right). |
String |
toString() |
public static <A,B> Pair<A,B> pair(A left, B right)
(left, right).A - The type of left values.B - The type of right values.left - The left valueright - The right valuepublic A getLeft()
public B getRight()
Copyright © 2017 <code@io7m.com> http://io7m.com