Skip to content
Snippets Groups Projects
Commit 463b7198 authored by tjc's avatar tjc
Browse files

use ArrayList.contains()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@8050 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 5fc1c82a
No related branches found
No related tags found
No related merge requests found
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/AlignMatchVector.java,v 1.2 2006-08-09 16:35:31 tjc Exp $ * $Header: //tmp/pathsoft/artemis/uk/ac/sanger/artemis/AlignMatchVector.java,v 1.3 2008-06-26 09:38:13 tjc Exp $
*/ */
package uk.ac.sanger.artemis; package uk.ac.sanger.artemis;
...@@ -28,13 +28,12 @@ package uk.ac.sanger.artemis; ...@@ -28,13 +28,12 @@ package uk.ac.sanger.artemis;
import uk.ac.sanger.artemis.util.FastVector; import uk.ac.sanger.artemis.util.FastVector;
import java.util.Comparator; import java.util.Comparator;
import java.util.Collections;
/** /**
* This class is a Vector of AlignMatch objects. * This class is a Vector of AlignMatch objects.
* *
* @author Kim Rutherford <kmr@sanger.ac.uk> * @author Kim Rutherford <kmr@sanger.ac.uk>
* @version $Id: AlignMatchVector.java,v 1.2 2006-08-09 16:35:31 tjc Exp $ * @version $Id: AlignMatchVector.java,v 1.3 2008-06-26 09:38:13 tjc Exp $
**/ **/
public class AlignMatchVector { public class AlignMatchVector {
...@@ -79,11 +78,7 @@ public class AlignMatchVector { ...@@ -79,11 +78,7 @@ public class AlignMatchVector {
* Return true if this object contains the given AlignMatch. * Return true if this object contains the given AlignMatch.
**/ **/
public boolean contains (AlignMatch item) { public boolean contains (AlignMatch item) {
if (indexOf (item) == -1) { return vector.contains(item);
return false;
} else {
return true;
}
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment