Package org.tweetyproject.preferences
Class Quadruple<E,F,G,H>
java.lang.Object
org.tweetyproject.preferences.Quadruple<E,F,G,H>
- Type Parameters:
E
- the type of the first elementF
- the type of the second elementG
- the type of the third elementH
- the type of the fourth element
This class implements a simple quadruple of elements.
- Author:
- Bastian Wolf
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getObj1()
returns the first element of this quadruplegetObj2()
returns the second element of this quadruplegetObj3()
returns the third element of this quadruplegetObj4()
returns the fourth element of this quadrupleint
hashCode()
void
sets the first element of this triplevoid
sets the second element of this triplevoid
sets the third element of this triplevoid
sets the fourth element of this triple
-
Constructor Details
-
Quadruple
Initializes the elements of this quadruple with given parameters- Parameters:
obj1
- some objectobj2
- some objectobj3
- some objectobj4
- some object
-
Quadruple
public Quadruple()Initializes an empty quadruple
-
-
Method Details
-
getObj1
returns the first element of this quadruple- Returns:
- the first element of this quadruple
-
setObj1
sets the first element of this triple- Parameters:
obj1
- an object of type E
-
getObj2
returns the second element of this quadruple- Returns:
- the second element of this quadruple
-
setObj2
sets the second element of this triple- Parameters:
obj2
- an object of type E
-
getObj3
returns the third element of this quadruple- Returns:
- the third element of this quadruple
-
setObj3
sets the third element of this triple- Parameters:
obj3
- an object of type F
-
getObj4
returns the fourth element of this quadruple- Returns:
- the fourth element of this quadruple
-
setObj4
sets the fourth element of this triple- Parameters:
obj4
- an object of type H
-
hashCode
public int hashCode() -
equals
-