Package es.bsc.dataclay.util.structs
Class Tuple<X,Y>
- java.lang.Object
-
- es.bsc.dataclay.util.structs.Tuple<X,Y>
-
- Type Parameters:
X- First element typeY- Second element type
- All Implemented Interfaces:
Serializable
public final class Tuple<X,Y> extends Object implements Serializable
This class represents a tuple.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object t)XgetFirst()Get the Tuple::firstYgetSecond()Get the Tuple::secondinthashCode()voidsetFirst(X newfirst)Set the Tuple::firstvoidsetSecond(Y newsecond)Set the Tuple::secondStringtoString()
-
-
-
Method Detail
-
getFirst
public X getFirst()
Get the Tuple::first- Returns:
- the first
-
setFirst
public void setFirst(X newfirst)
Set the Tuple::first- Parameters:
newfirst- the first to set
-
getSecond
public Y getSecond()
Get the Tuple::second- Returns:
- the second
-
setSecond
public void setSecond(Y newsecond)
Set the Tuple::second- Parameters:
newsecond- the second to set
-
-