edu.mayo.bsi.ngsportal.shared
Class StringPair

java.lang.Object
  extended by edu.mayo.bsi.ngsportal.shared.StringPair

public class StringPair
extends Object

A class for holding two case insensitive strings (since equals uses equalsIgnoreCase)

@author Gregory Dougherty


Constructor Summary
StringPair(String first, String second)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFirst()
           
 String getSecond()
           
 int hashCode()
           
 String makeString(String separator)
          Return a string that consists of first + separator + second
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringPair

public StringPair(String first,
                  String second)
Parameters:
first -
second -
Method Detail

getFirst

public final String getFirst()
Returns:
the first

getSecond

public final String getSecond()
Returns:
the second

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

makeString

public final String makeString(String separator)
Return a string that consists of first + separator + second

Parameters:
separator - String to put in between first and second. Should not be null
Returns:
A string holding the two parts of the string pair, joined by separator

toString

public String toString()
Overrides:
toString in class Object