Esempio n. 1
0
 public String toStringPlain() {
   StringBuilder sb = new StringBuilder();
   Nucleotide now = threeEnd;
   while (now != null) {
     sb.append(now.toString());
     now = now.getNext();
   }
   return sb.toString();
 }
Esempio n. 2
0
 public String toStringPlainReversed() {
   StringBuilder sb = new StringBuilder();
   Nucleotide now = fiveEnd;
   while (now != null) {
     sb.append(now.toString());
     now = now.getPrev();
   }
   return sb.toString();
 }
Esempio n. 3
0
 public String toStringReversed() {
   StringBuilder sb = new StringBuilder();
   sb.append("(5) ");
   Nucleotide now = fiveEnd;
   while (true) {
     sb.append(now.toString());
     now = now.getPrev();
     if (now != null) {
       sb.append("=");
     } else {
       break;
     }
   }
   sb.append(" (3)");
   return sb.toString();
 }