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

Constructor Index

 o StringPair()
Constructor that initializes the two elements to "".
 o StringPair(String, String)
Constructor that initializes the first element to f and the second element to s.

Method Index

 o first()
Get the first element.
 o second()
Get the second element.
 o setFirst(String)
Set the first element to n.
 o setSecond(String)
Set the second element to n.
 o toString()
Return the content of the two elements.

Constructors

 o StringPair
 public StringPair()
Constructor that initializes the two elements to "".

 o StringPair
 public StringPair(String f,
                   String s)
Constructor that initializes the first element to f and the second element to s.

Methods

 o setFirst
 public void setFirst(String n)
Set the first element to n.

Parameters:
n - the value of the element to be set
 o first
 public String first()
Get the first element.

Returns:
the value of the element
 o setSecond
 public void setSecond(String n)
Set the second element to n.

Parameters:
n - the value of the element to be set
 o second
 public String second()
Get the second element.

Returns:
the value of the element
 o 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