FileDocCategorySizeDatePackage
Mar.javaAPI DocExample12284Sat Nov 25 11:54:28 GMT 2000None

StringPair

public class StringPair extends Object
Purpose: Encapsulates a pair of String objects
version
1.0 December 96
author
Ilya Tilevich

Fields Summary
protected String
m_strOne
protected String
m_strTwo
Constructors Summary
public StringPair()
Purpose: Constructor

  	  m_strOne = new String("");
	  m_strTwo = new String("");
  
public StringPair(String strOne, String strTwo)
Purpose: Constructor

param
strOne - first String
param
strTwo - second String

	  m_strOne = new String(strOne);
	  m_strTwo = new String(strTwo);
  
Methods Summary
public java.lang.StringGetFirstString()
Purpose: returns the first string of the pair

return
String

 return m_strOne; 
public java.lang.StringGetSecondString()
Purpose: returns the second string of the pair

return
String

 return m_strTwo; 
public voidSetFirstString(java.lang.String strOne)
Purpose: Sets the value for the first String

param
strOne

 m_strOne = strOne; 
public voidSetSecondString(java.lang.String strTwo)
Purpose: Sets the value for the second String

param
strTwo

 m_strTwo = strTwo; 
public booleanequal(StringPair stPair)
Purpose: compares two StringPairs

param
StringPair

	  return (m_strOne == stPair.m_strOne && m_strTwo == stPair.m_strTwo);