|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.twilio.jenkins.Pair<L,R>
L - the type of the leftR - the type of the rightpublic class Pair<L,R>
A simple Pair implementation using generics.
| Constructor Summary | |
|---|---|
Pair(L left,
R right)
Construct an immutable Pair, passing in the left and right attributes |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
|
L |
getLeft()
Returns the left attribute. |
R |
getRight()
Returns the right attribute. |
int |
hashCode()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(L left,
R right)
Pair, passing in the left and right attributes
left - the left attributeright - the right attribute| Method Detail |
|---|
public L getLeft()
public R getRight()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object o)
equals in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||