From b0fd5b09537e6f6162826c3b6f30edf9ce3dfa8d Mon Sep 17 00:00:00 2001 From: gmungoc Date: Thu, 21 Jan 2016 14:30:31 +0000 Subject: [PATCH] JAL-1705 toString() added (for debugging) --- src/jalview/datamodel/Mapping.java | 10 ++++++++++ 1 file changed, 10 insertions(+) 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()); + } + } -- 1.7.10.2