コード例 #1
0
 /*
  * Constructs a new DNAStrand which contains a given Nucleotide.
  * This nucleotide should be able to be ANY of the many nucleotides in a strand
  * (i.e. you will need to calculate the threeEnd and fiveEnd from any Nucleotide.)
  */
 public DNAStrand(Nucleotide any) {
   if (any == null) {
     throw new IllegalArgumentException();
   } else {
     threeEnd = any.getThree();
     fiveEnd = any.getFive();
   }
 }