git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3639466
)
JAL-1705 toString() added (for debugging)
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 14:30:31 +0000
(14:30 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Thu, 21 Jan 2016 14:30:31 +0000
(14:30 +0000)
src/jalview/datamodel/Mapping.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Mapping.java
b/src/jalview/datamodel/Mapping.java
index
eb594be
..
c4c4a2a
100644
(file)
--- 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());
+ }
+
}