|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.util.Pair<E1,E2>
public class Pair<E1,E2>
A simple class that holds a pair of values. This may be useful for methods that care to return two values (instead of just one).
| Constructor Summary | |
|---|---|
Pair(E1 first,
E2 second)
Construct a new pair |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Pair objects are equal iff they have the same content. |
E1 |
first()
Get the first value from the pair. |
int |
hashCode()
|
E2 |
second()
Get the second value from the pair. |
void |
setFirst(E1 first)
Set the first value of the pair. |
void |
setSecond(E2 second)
Set the second value of the pair. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(E1 first,
E2 second)
first - the object to store as the first valuesecond - the object to store as the second value| Method Detail |
|---|
public E1 first()
public E2 second()
public void setFirst(E1 first)
first - the new first valuepublic void setSecond(E2 second)
second - the new second valuepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||