JAL-1705 toString() added (for debugging)
[jalview.git] / 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());
+  }
+
 }