import java.text.Collator;


public class MIRNAseedMatch implements Comparable<MIRNAseedMatch> {
	private String _matchType;
	private int _location;
	
	public MIRNAseedMatch(int location, String type) {
		_location = location;
		_matchType = type;
	}	
	public String getMatchType() {
		return _matchType;
	}
	public int getLocation() {
		return _location;
	}

//***************************************************************			
// Comparing
	public int compareTo(MIRNAseedMatch match2) {
		if( this.getMatchType().equals(match2.getMatchType()) ) {
			return  this.getLocation() - match2.getLocation();
		}
		Collator typeCompare = Collator.getInstance();
		return typeCompare.compare( this.getMatchType(), match2.getMatchType() );
	}
//***************************************************************		
}
