+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public void deleteAll()
+ {
+ featureStore.clear();
+ }
+
+ @Override
+ public List<SequenceFeature> findFeatures(int pos, String type,
+ List<SequenceFeature> list)
+ {
+ FeatureStore fs = featureStore.get(type);
+ if (fs == null)
+ {
+ return list == null ? new ArrayList<>() : list;
+ }
+ return fs.findFeatures(pos, pos, list);
+ }
+
+ @Override
+ public boolean hasFeatures(String type)
+ {
+ return featureStore.containsKey(type)
+ && !featureStore.get(type).isEmpty();
+ }
+
+}