Class Tuple<T,S>
java.lang.Object
type.Tuple<T,S>
- Type Parameters:
T- type of the first element | type du premier élémentS- type of the second element | type du second élément
A generic tuple holding two values of potentially different types |
Un tuple générique contenant deux valeurs de types potentiellement différents.
- Author:
- FIGUEIRAS Jossua
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFirst()Returns the first element of the tuple | Retourne le premier élément du tuple.Returns the second element of the tuple | Retourne le second élément du tuple.voidSets the first element of the tuple | Définit le premier élément du tuple.voidSets the second element of the tuple | Définit le second élément du tuple.
-
Constructor Details
-
Tuple
-
-
Method Details
-
getFirst
Returns the first element of the tuple | Retourne le premier élément du tuple.- Returns:
- the first element | le premier élément
-
setFirst
Sets the first element of the tuple | Définit le premier élément du tuple.- Parameters:
f- the new first element | le nouvel élément
-
getSecond
Returns the second element of the tuple | Retourne le second élément du tuple.- Returns:
- the second element | le second élément
-
setSecond
Sets the second element of the tuple | Définit le second élément du tuple.- Parameters:
s- the new second element | le nouvel élément
-