Skip to content
Permalink
8156e81312
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
34 lines (28 sloc) 821 Bytes
public class Position implements Comparable{
private Contig contig;
private int startingPosition;
public Contig getContig() {
return contig;
}
public void setContig(Contig contig) {
this.contig = contig;
}
public int getStartingPosition() {
return startingPosition;
}
public void setStartingPosition(int startingPosition) {
this.startingPosition = startingPosition;
}
public int compareTo(Object obj) {
Position tmp = (Position) obj;
if ((this.startingPosition) < (tmp.startingPosition)) {
/* instance lt received */
return -1;
} else if ((this.startingPosition) > (tmp.startingPosition)) {
/* instance gt received */
return 1;
}
/* instance == received */
return 0;
}
}