public final class Pair<First,Second>
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(java.lang.Object other) |
|
First |
first() |
Returns the first element of the
Pair. |
int |
hashCode() |
|
static <First,Second> |
of(First first,
Second second) |
Creates a new Pair.
|
Second |
second() |
Returns the second element of the
Pair. |
java.lang.String |
toString() |
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic static <First,Second> Pair<First,Second> of(First first, Second second)
First - the type of the first elementSecond - the type of the second elementfirst - the first elementsecond - the second elementPair of the first and second elements.Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.