|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.code.facebookapi.Pair<N,V>
N - first element in the pair.V - second element in the pair.public class Pair<N,V>
Simple data structure for grouping two values together. Required by some API calls.
| Field Summary | |
|---|---|
N |
first
The first element in the pair. |
V |
second
The second element in the pair. |
| Constructor Summary | |
|---|---|
Pair(N name,
V value)
Constructor. |
|
| Method Summary | |
|---|---|
N |
getFirst()
|
V |
getSecond()
|
void |
setFirst(N first)
Set the first element in the pair |
void |
setSecond(V second)
Set the second element in the pair |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public N first
public V second
| Constructor Detail |
|---|
public Pair(N name,
V value)
name - the first value in the pair.value - the second value in the pair.| Method Detail |
|---|
public void setFirst(N first)
setFirst in interface IPair<N,V>first - the object to setpublic N getFirst()
getFirst in interface IPair<N,V>public void setSecond(V second)
setSecond in interface IPair<N,V>second - the object to setpublic V getSecond()
getSecond in interface IPair<N,V>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||