JAL-2843 add isByAttribute to interface for convenience
[jalview.git] / src / jalview / datamodel / features / FeatureMatcher.java
index 50dd102..f844141 100644 (file)
@@ -356,6 +356,12 @@ public class FeatureMatcher implements FeatureMatcherI
     return byScore;
   }
 
+  @Override
+  public boolean isByAttribute()
+  {
+    return getAttribute() != null;
+  }
+
   /**
    * {@inheritDoc} The output of this method should be parseable by method
    * <code>fromString<code> to restore the original object.