|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object tribble.util.Tuple3<T1,T2,T3>
public class Tuple3<T1,T2,T3>
Holds three values, i.e., is a 3-tuple. The first value is of type T1, the second is of type T2, and the third is of type T3.
Note: This requires Java 1.5 or later.
Copyright ©2008 by David R. Tribble, all rights reserved.
Permission is granted to any person or entity except those designated by
by the United States Department of State as a terrorist, or terrorist
government or agency, to use and distribute this source code provided
that the original copyright notice remains present and unaltered.
Pair
Field Summary | |
---|---|
protected T1 |
m_val1
First value of this tuple. |
protected T2 |
m_val2
Second value of this tuple. |
protected T3 |
m_val3
Third value of this tuple. |
Constructor Summary | |
---|---|
Tuple3()
Default constructor. |
|
Tuple3(T1 val1,
T2 val2,
T3 val3)
Constructor. |
|
Tuple3(Tuple3<T1,T2,T3> tup)
Constructor. |
Method Summary | |
---|---|
Tuple3<T1,T2,T3> |
clone()
Create a copy of the tuple. |
T1 |
getValue1()
Retrieve the first value of the tuple. |
T2 |
getValue2()
Retrieve the second value of the tuple. |
T3 |
getValue3()
Retrieve the third value of the tuple. |
void |
setValue1(T1 val)
Set the first value of the tuple. |
void |
setValue2(T2 val)
Set the second value of the tuple. |
void |
setValue3(T3 val)
Set the third value of the tuple. |
java.lang.String |
toString()
Produce a string representation of the tuple. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected T1 m_val1
protected T2 m_val2
protected T3 m_val3
Constructor Detail |
---|
public Tuple3()
public Tuple3(T1 val1, T2 val2, T3 val3)
val1
- First value contained in the tuple.val2
- Second value contained in the tuple.val3
- Third value contained in the tuple.public Tuple3(Tuple3<T1,T2,T3> tup)
tup
- Another tuple, from which the contents of this tuple are copied.Method Detail |
---|
public T1 getValue1()
public void setValue1(T1 val)
public T2 getValue2()
public void setValue2(T2 val)
public T3 getValue3()
public void setValue3(T3 val)
public Tuple3<T1,T2,T3> clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |