All Packages Class Hierarchy This Package Previous Next Index
Class ca.carleton.sce.ucmagents.lfmparse.StringPair
ca.carleton.sce.ucmagents.lfmparse.StringPair
- public class StringPair
StringPair
is a class that can contain two String elements.
It was meant to be less expensive than a Vector of the same size.
- Version:
- 1.00, 1998 01 28
- Author:
- Daniel Amyot, damyot@csi.uottawa.ca
-
StringPair()
- Constructor that initializes the two elements to "".
-
StringPair(String, String)
- Constructor that initializes the first element to f
and the second element to s.
-
first()
- Get the first element.
-
second()
- Get the second element.
-
setFirst(String)
- Set the first element to n.
-
setSecond(String)
- Set the second element to n.
-
toString()
- Return the content of the two elements.
StringPair
public StringPair()
- Constructor that initializes the two elements to "".
StringPair
public StringPair(String f,
String s)
- Constructor that initializes the first element to f
and the second element to s.
setFirst
public void setFirst(String n)
- Set the first element to n.
- Parameters:
- n - the value of the element to be set
first
public String first()
- Get the first element.
- Returns:
- the value of the element
setSecond
public void setSecond(String n)
- Set the second element to n.
- Parameters:
- n - the value of the element to be set
second
public String second()
- Get the second element.
- Returns:
- the value of the element
toString
public String toString()
- Return the content of the two elements.
- Returns:
- the content of the two elements, within angle brackets and separated by a comma
All Packages Class Hierarchy This Package Previous Next Index