|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxsmart.ic.lang.Tuple
public class Tuple
This class represents a tuple (i.e. it contains 2 objects). You kinda wonder why something like this isn't available in the standard Java JDK.
| Constructor Summary | |
|---|---|
Tuple()
Constructs a tuple object. |
|
Tuple(java.lang.Object value1,
java.lang.Object value2)
Constructs a tuple object while specifying both values. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object tupleObject)
Determines if two Tuples are equal. |
java.lang.Object |
getValue1()
Gets the first value. |
java.lang.Object |
getValue2()
Gets the second value. |
void |
setValue1(java.lang.Object value1)
Sets the first value. |
void |
setValue2(java.lang.Object value2)
Sets the second value. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Tuple()
public Tuple(java.lang.Object value1,
java.lang.Object value2)
value1 - the first value.value2 - the second value.| Method Detail |
|---|
public void setValue1(java.lang.Object value1)
value1 - The first value.public java.lang.Object getValue1()
public void setValue2(java.lang.Object value2)
value2 - The second value.public java.lang.Object getValue2()
public boolean equals(java.lang.Object tupleObject)
equals in class java.lang.ObjecttupleObject - The tuple to compare.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||