JAL-1705 toString() added (for debugging)
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 14:30:31 +0000 (14:30 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 14:30:31 +0000 (14:30 +0000)
src/jalview/datamodel/Mapping.java

index eb594be..c4c4a2a 100644 (file)
@@ -706,4 +706,14 @@ public class Mapping
     return new AlignedCodonIterator(seq, gapChar);
   }
 
+  /**
+   * Readable representation for debugging only, not guaranteed not to change
+   */
+  @Override
+  public String toString()
+  {
+    return String.format("%s %s", this.map.toString(), this.to == null ? ""
+            : this.to.getName());
+  }
+
 }