From d9462b7299f6c5d7025369d55bba347aee04a81d Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 24 Mar 2006 15:31:11 +0000 Subject: [PATCH] FeaturesGroup added to constructor --- src/jalview/datamodel/SequenceFeature.java | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/jalview/datamodel/SequenceFeature.java b/src/jalview/datamodel/SequenceFeature.java index aadd357..f8444a0 100755 --- a/src/jalview/datamodel/SequenceFeature.java +++ b/src/jalview/datamodel/SequenceFeature.java @@ -40,7 +40,11 @@ public class SequenceFeature public SequenceFeature() {} - public SequenceFeature(String type, String desc, String status, int begin, int end) + public SequenceFeature(String type, + String desc, + String status, + int begin, int end, + String featureGroup) { this.type = type; this.description = desc; @@ -48,8 +52,24 @@ public class SequenceFeature this.position = begin; this.begin = begin; this.end = end; + this.featureGroup = featureGroup; + } + + public boolean equals(SequenceFeature sf) + { + if(begin != sf.begin + || end != sf.end) + return false; + + + if(!(type+description+status).equals + (sf.type+sf.description+sf.status)) + return false; + + return true; } + public int getPosition() { return position; -- 1.7.10.2