|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTypesSpec.Pair<T1,T2>
public class Pair<T1,T2>
Type generique Java semblable au type "tuple" de Spec, mais pour deux elements, donc des paires.
Method Summary | ||
---|---|---|
T1 |
first()
Premiere composante du tuple. |
|
static
|
pair(T1 v1,
T2 v2)
Constructeur statique, pour faciliter l'utilisation dans d'autres types. |
|
T2 |
second()
Deuxieme composante du tuple. |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static <T1,T2> Pair<T1,T2> pair(T1 v1, T2 v2)
public T1 first()
public T2 second()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |