| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A tuple specifies sets of allowed combinations.
An example of a Tuple range would be:
(Savoy, London)
The values held in a Tuple may only be Strings.
Hence integers must be represented as follows: "1".
Constructor Summary | |
Tuple() Constructs an empty Tuple. | |
Tuple(String str) Constructs a new Tuple and populates it with the values passed in the String. | |
Tuple(Vector v) Constructs a new Tuple and populates it with the values passed in the Vector. |
Method Summary | |
void | addValue(String str) Adds another Value to the tuple. |
Tuple | copy() Returns an exact copy of this Tuple object. |
Enumeration | elements() Returns an Enumeration of the elements held in this Tuple. |
static void | main(String[] args) Used to test the class. |
String | toString() Returns a String representation of this Tuple. |
Constructor Detail |
public Tuple()
public Tuple(String str)
public Tuple(Vector v)
Method Detail |
public void addValue(String str)
public Tuple copy()
public Enumeration elements()
public static void main(String[] args)
public String toString()
Association Links |
| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |