util
Class Triple<ObjType>

java.lang.Object
  extended by util.Triple<ObjType>

public class Triple<ObjType>
extends java.lang.Object

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

first

public ObjType first

second

public ObjType second

third

public ObjType third
Constructor Detail

Triple

public Triple(ObjType first,
              ObjType second,
              ObjType third)
Construct the triple of the given object type references.

Parameters:
first - the reference to the first object.
second - the reference to the second object.
third - the reference to the third object.

Triple

public Triple(Triple<ObjType> triple)
Construct the clone of the given triple.

Parameters:
triple - the reference to the triple object to be cloned.
Method Detail

get_first

public ObjType get_first()
Get the first reference of the three.

Returns:
the reference to the first of the three.

set_first

public void set_first(ObjType first)
Set the first reference of the three.

Parameters:
first - the reference to the new object.

get_second

public ObjType get_second()
Get the second reference of the three.

Returns:
the reference to the second of the three.

set_second

public void set_second(ObjType second)
Set the second reference of the three.

Parameters:
second - the reference to the new object.

get_third

public ObjType get_third()
Get the third reference of the three.

Returns:
the reference to the third of the three.

set_third

public void set_third(ObjType third)
Set the third reference of the three.

Parameters:
third - the reference to the new object.

set_triple

public void set_triple(Triple<ObjType> triple)
Set all three of the references.

Parameters:
triple - the reference to the other triple.

set_triple

public void set_triple(ObjType first,
                       ObjType second,
                       ObjType third)
Set all three of the references.

Parameters:
first - the reference to the first new object.
second - the reference to the second new object.
third - the reference to the third new object.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

Print

public void Print()