-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only two sequences with the same binary mode type can be linked.
- Loading branch information
Showing
8 changed files
with
121 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package proteomics.Types; | ||
|
||
|
||
public class VarSequence { | ||
|
||
public final String seq; | ||
public final short linkSite; | ||
public final int binaryModType; | ||
private final String toString; | ||
|
||
public VarSequence(String seq, short linkSite, int binaryModType) { | ||
this.seq = seq; | ||
this.linkSite = linkSite; | ||
this.binaryModType = binaryModType; | ||
toString = seq + "-" + linkSite + "-" + binaryModType; | ||
} | ||
|
||
public boolean equals(Object other) { | ||
if (other instanceof VarSequence) { | ||
VarSequence temp = (VarSequence) other; | ||
return temp.seq.contentEquals(seq) && (temp.linkSite == linkSite) && (temp.binaryModType == binaryModType); | ||
} else { | ||
return false; | ||
} | ||
} | ||
|
||
public String toString() { | ||
return toString; | ||
} | ||
|
||
public int hashCode() { | ||
return toString.hashCode(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.