|
||||||||||
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
- 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
- operandMethod Detail |
---|
public T getFirst()
public T getSecond()
public boolean equals(Object other)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public Iterator<T> iterator()
iterator
in interface Iterable<T>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |