public final class Pair<F,S> extends Object
| Constructor and Description |
|---|
Pair(F first,
S second)
Constructor for a Pair.
|
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Pair<A,B> |
create(A a,
B b)
Convenience method for creating an appropriately typed pair.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public static <A,B> Pair<A,B> create(A a, B b)
A - First type.B - Second type.a - First part.b - Second part.Copyright © 2018. All rights reserved.