E
- the type of the first elementF
- the type of the second elementG
- the type of the third elementH
- the type of the fourth elementpublic class Quadruple<E,F,G,H>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) E |
obj1
The first element
|
(package private) F |
obj2
The second element
|
(package private) G |
obj3
The third element
|
(package private) H |
obj4
The fourth element
|
Constructor and Description |
---|
Quadruple()
Initializes an empty quadruple
|
Quadruple(E obj1,
F obj2,
G obj3,
H obj4)
Initializes the elements of this quadruple with given parameters
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
E |
getObj1()
returns the first element of this quadruple
|
F |
getObj2()
returns the second element of this quadruple
|
G |
getObj3()
returns the third element of this quadruple
|
H |
getObj4()
returns the fourth element of this quadruple
|
int |
hashCode() |
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
|
E obj1
F obj2
G obj3
H obj4
public Quadruple(E obj1, F obj2, G obj3, H obj4)
obj1
- obj2
- obj3
- obj4
- public Quadruple()
public E getObj1()
public void setObj1(E obj1)
obj1
- an object of type Epublic F getObj2()
public void setObj2(F obj2)
obj2
- an object of type Epublic G getObj3()
public void setObj3(G obj3)
obj3
- an object of type Fpublic H getObj4()
public void setObj4(H obj4)
obj4
- an object of type Hpublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object