@InterfaceAudience.Public public class PairOfSameType<T> extends Object implements Iterable<T>
T.if Types differ.| Constructor and Description |
|---|
PairOfSameType(T a,
T b)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object other) |
private static boolean |
equals(Object x,
Object y) |
T |
getFirst()
Return the first element stored in the pair.
|
T |
getSecond()
Return the second element stored in the pair.
|
int |
hashCode() |
Iterator<T> |
iterator() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic PairOfSameType(T a, T b)
a - operandb - operandCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.