Package org.tweetyproject.commons.util
Class Triple<E,F,G>
java.lang.Object
org.tweetyproject.commons.util.Triple<E,F,G>
- Type Parameters:
E
- the type of the first elementF
- the type of the second elementG
- the type of the third element
This class implements a simple triple of elements.
- Author:
- Matthias Thimm
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getFirst()
returns the first element of this triplereturns the second element of this triplegetThird()
returns the third element of this tripleint
hashCode()
void
sets the first element of this triplevoid
sets the second element of this triplevoid
sets the third element of this triple
-
Constructor Details
-
Triple
-
Triple
public Triple()Initializes an empty triple.
-
-
Method Details
-
getFirst
returns the first element of this triple- Returns:
- the first element of this triple
-
setFirst
sets the first element of this triple- Parameters:
obj1
- an object of type E
-
getSecond
returns the second element of this triple- Returns:
- the second element of this triple
-
setSecond
sets the second element of this triple- Parameters:
obj2
- an object of type F
-
getThird
returns the third element of this triple- Returns:
- the third element of this triple
-
setThird
sets the third element of this triple- Parameters:
obj3
- an object of type G
-
hashCode
-
equals
-