From: gmungoc Date: Thu, 21 Jan 2016 14:30:31 +0000 (+0000) Subject: JAL-1705 toString() added (for debugging) X-Git-Tag: Release_2_10_0~296^2~85 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b0fd5b09537e6f6162826c3b6f30edf9ce3dfa8d;p=jalview.git JAL-1705 toString() added (for debugging) --- diff --git a/src/jalview/datamodel/Mapping.java b/src/jalview/datamodel/Mapping.java index eb594be..c4c4a2a 100644 --- a/src/jalview/datamodel/Mapping.java +++ b/src/jalview/datamodel/Mapping.java @@ -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()); + } + }