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 element
F - the type of the second element
G - the type of the third element
H - the type of the fourth element

public class Quadruple<E,​F,​G,​H> extends Object
This class implements a simple quadruple of elements.
Author:
Bastian Wolf
  • Constructor Summary

    Constructors
    Constructor
    Description
    Initializes an empty quadruple
    Quadruple​(E obj1, F obj2, G obj3, H obj4)
    Initializes the elements of this quadruple with given parameters
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals​(Object obj)
     
    returns the first element of this quadruple
    returns the second element of this quadruple
    returns the third element of this quadruple
    returns the fourth element of this quadruple
    int
     
    void
    setObj1​(E obj1)
    sets the first element of this triple
    void
    setObj2​(F obj2)
    sets the second element of this triple
    void
    setObj3​(G obj3)
    sets the third element of this triple
    void
    setObj4​(H obj4)
    sets the fourth element of this triple

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Quadruple

      public Quadruple(E obj1, F obj2, G obj3, H obj4)
      Initializes the elements of this quadruple with given parameters
      Parameters:
      obj1 - some object
      obj2 - some object
      obj3 - some object
      obj4 - some object
    • Quadruple

      public Quadruple()
      Initializes an empty quadruple
  • Method Details

    • getObj1

      public E getObj1()
      returns the first element of this quadruple
      Returns:
      the first element of this quadruple
    • setObj1

      public void setObj1(E obj1)
      sets the first element of this triple
      Parameters:
      obj1 - an object of type E
    • getObj2

      public F getObj2()
      returns the second element of this quadruple
      Returns:
      the second element of this quadruple
    • setObj2

      public void setObj2(F obj2)
      sets the second element of this triple
      Parameters:
      obj2 - an object of type E
    • getObj3

      public G getObj3()
      returns the third element of this quadruple
      Returns:
      the third element of this quadruple
    • setObj3

      public void setObj3(G obj3)
      sets the third element of this triple
      Parameters:
      obj3 - an object of type F
    • getObj4

      public H getObj4()
      returns the fourth element of this quadruple
      Returns:
      the fourth element of this quadruple
    • setObj4

      public void setObj4(H obj4)
      sets the fourth element of this triple
      Parameters:
      obj4 - an object of type H
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object