X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2Ffeatures%2FFeatureMatcherSet.java;h=b51f2f0a5cc95e3de1f9e3be3404709d1cea6781;hb=e6fd15cb3a149fb6a8852448260b7b6e52dd2dcc;hp=3d28def1a887640f4674b8a9fbac6651d5fbc286;hpb=ec44bf310ff6aaa0438f486dadc65f2af385d99d;p=jalview.git diff --git a/src/jalview/datamodel/features/FeatureMatcherSet.java b/src/jalview/datamodel/features/FeatureMatcherSet.java index 3d28def..b51f2f0 100644 --- a/src/jalview/datamodel/features/FeatureMatcherSet.java +++ b/src/jalview/datamodel/features/FeatureMatcherSet.java @@ -6,6 +6,12 @@ import jalview.util.MessageManager; import java.util.ArrayList; import java.util.List; +/** + * A class that models one or more match conditions, which may be combined with + * AND or OR (but not a mixture) + * + * @author gmcarstairs + */ public class FeatureMatcherSet implements FeatureMatcherSetI { private static final String OR = "OR"; @@ -182,7 +188,7 @@ public class FeatureMatcherSet implements FeatureMatcherSetI } @Override - public FeatureMatcherSetI and(FeatureMatcherI m) + public void and(FeatureMatcherI m) { if (!andConditions && matchConditions.size() > 1) { @@ -190,12 +196,10 @@ public class FeatureMatcherSet implements FeatureMatcherSetI } matchConditions.add(m); andConditions = true; - - return this; } @Override - public FeatureMatcherSetI or(FeatureMatcherI m) + public void or(FeatureMatcherI m) { if (andConditions && matchConditions.size() > 1) { @@ -203,8 +207,6 @@ public class FeatureMatcherSet implements FeatureMatcherSetI } matchConditions.add(m); andConditions = false; - - return this; } @Override