|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectutil.Triple<ObjType>
public class Triple<ObjType>
This class allows storing triples of objects as a single entity.
| Field Summary | |
|---|---|
ObjType |
first
|
ObjType |
second
|
ObjType |
third
|
| Constructor Summary | |
|---|---|
Triple(ObjType first,
ObjType second,
ObjType third)
Construct the triple of the given object type references. |
|
Triple(Triple<ObjType> triple)
Construct the clone of the given triple. |
|
| Method Summary | |
|---|---|
ObjType |
get_first()
Get the first reference of the three. |
ObjType |
get_second()
Get the second reference of the three. |
ObjType |
get_third()
Get the third reference of the three. |
void |
Print()
|
void |
set_first(ObjType first)
Set the first reference of the three. |
void |
set_second(ObjType second)
Set the second reference of the three. |
void |
set_third(ObjType third)
Set the third reference of the three. |
void |
set_triple(ObjType first,
ObjType second,
ObjType third)
Set all three of the references. |
void |
set_triple(Triple<ObjType> triple)
Set all three of the references. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public ObjType first
public ObjType second
public ObjType third
| Constructor Detail |
|---|
public Triple(ObjType first,
ObjType second,
ObjType third)
first - the reference to the first object.second - the reference to the second object.third - the reference to the third object.public Triple(Triple<ObjType> triple)
triple - the reference to the triple object to be cloned.| Method Detail |
|---|
public ObjType get_first()
public void set_first(ObjType first)
first - the reference to the new object.public ObjType get_second()
public void set_second(ObjType second)
second - the reference to the new object.public ObjType get_third()
public void set_third(ObjType third)
third - the reference to the new object.public void set_triple(Triple<ObjType> triple)
triple - the reference to the other triple.
public void set_triple(ObjType first,
ObjType second,
ObjType third)
first - the reference to the first new object.second - the reference to the second new object.third - the reference to the third new object.public java.lang.String toString()
toString in class java.lang.Objectpublic void Print()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||