public String toStringPlain() { StringBuilder sb = new StringBuilder(); Nucleotide now = threeEnd; while (now != null) { sb.append(now.toString()); now = now.getNext(); } return sb.toString(); }
public String toStringPlainReversed() { StringBuilder sb = new StringBuilder(); Nucleotide now = fiveEnd; while (now != null) { sb.append(now.toString()); now = now.getPrev(); } return sb.toString(); }
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(); }