E - the type of the first elementF - the type of the second elementG - the type of the third elementpublic class Triple<E,F,G> extends Object
| Constructor and Description |
|---|
Triple()
Initializes an empty triple.
|
Triple(E obj1,
F obj2,
G obj3)
Initializes the elements of this triple with the given parameters
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
E |
getFirst()
returns the first element of this triple
|
F |
getSecond()
returns the second element of this triple
|
G |
getThird()
returns the third element of this triple
|
int |
hashCode() |
void |
setFirst(E obj1)
sets the first element of this triple
|
void |
setSecond(F obj2)
sets the second element of this triple
|
void |
setThird(G obj3)
sets the third element of this triple
|
public Triple(E obj1, F obj2, G obj3)
obj1 - the first element of this tripleobj2 - the second element of this tripleobj3 - the third element of this triplepublic Triple()
public E getFirst()
public void setFirst(E obj1)
obj1 - an object of type Epublic F getSecond()
public void setSecond(F obj2)
obj2 - an object of type Fpublic G getThird()
public void setThird(G obj3)
obj3 - an object of type GCopyright © 2018. All rights reserved.