edu.mayo.bsi.ngsportal.shared
Class StringPair
java.lang.Object
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
StringPair
public StringPair(String first,
String second)
- Parameters:
first - second -
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