- * Answers true if either there are no attribute value filters defined, or the
- * feature matches all of the filter conditions. Answers false if the feature
- * fails the filter conditions.
- *
- * @param feature
- *
- * @return
- */
- boolean matchesFilters(SequenceFeature feature)
- {
- if (attributeFilters == null)
- {
- return true;
- }
-
- Function<String, String> valueProvider = key -> feature.otherDetails == null ? null
- : (feature.otherDetails.containsKey(key) ? feature.otherDetails
- .get(key).toString() : null);
- return attributeFilters.matches(valueProvider);
- }
-
- /**