|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.hbase.util.PairOfSameType<T>
T - @InterfaceAudience.Public @InterfaceStability.Stable public class PairOfSameType<T>
A generic, immutable class for pairs of objects both of type T.
if Types differ.| Constructor Summary | |
|---|---|
PairOfSameType(T a,
T b)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object other)
|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PairOfSameType(T a,
T b)
a - operandb - operand| Method Detail |
|---|
public T getFirst()
public T getSecond()
public boolean equals(Object other)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic Iterator<T> iterator()
iterator in interface Iterable<T>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||