Package representation
Class BinaryTuple
- java.lang.Object
-
- representation.BinaryTuple
-
public class BinaryTuple extends java.lang.ObjectCette classe décrit un couple de deux objets.
-
-
Constructor Summary
Constructors Constructor Description BinaryTuple(java.lang.Object val1, java.lang.Object val2)Constructeur par défaut.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.ObjectgetVal1()Retourne le premier objet stocké dans le couple.java.lang.ObjectgetVal2()Retourne le second objet stocké dans le couple.inthashCode()java.lang.StringtoString()
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
getVal1
public java.lang.Object getVal1()
Retourne le premier objet stocké dans le couple.- Returns:
- le premier objet du couple
- See Also:
val1
-
getVal2
public java.lang.Object getVal2()
Retourne le second objet stocké dans le couple.- Returns:
- le second objet du couple
- See Also:
val2
-
-