From 03496bf88fc1bec3ce628ac79ce69440ce244007 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Wed, 12 Nov 2014 12:40:43 +0000 Subject: [PATCH] javadoc --- src/jalview/datamodel/Sequence.java | 20 ++------------------ src/jalview/datamodel/SequenceI.java | 8 +++++--- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 68bf8f2..69d6da2 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -514,16 +514,7 @@ public class Sequence implements SequenceI return reply; } - /** - * make a new Sequence object from start to end (including gaps) over this - * seqeunce - * - * @param start - * int - * @param end - * int - * @return SequenceI - */ + @Override public SequenceI getSubSequence(int start, int end) { if (start < 0) @@ -623,14 +614,7 @@ public class Sequence implements SequenceI } } - /** - * Returns the sequence position for an alignment position - * - * @param i - * column index in alignment (from 1) - * - * @return residue number for residue (left of and) nearest ith column - */ + @Override public int findPosition(int i) { int j = 0; diff --git a/src/jalview/datamodel/SequenceI.java b/src/jalview/datamodel/SequenceI.java index 876db03..8376047 100755 --- a/src/jalview/datamodel/SequenceI.java +++ b/src/jalview/datamodel/SequenceI.java @@ -137,10 +137,12 @@ public interface SequenceI * create a new sequence object from start to end of this sequence * * @param start - * int + * int index for start position * @param end - * int + * int index for end position + * * @return SequenceI + * @note implementations may use getSequence to get the sequence data */ public SequenceI getSubSequence(int start, int end); @@ -189,7 +191,7 @@ public interface SequenceI * Returns the sequence position for an alignment position * * @param i - * column index in alignment (from 1) + * column index in alignment (from 0..