private ValueFilter[] createFilters(ValueFilter[] allFilters) {
      if (allFilters == null) {
        return new ValueFilter[0];
      }
      ArrayList l = new ArrayList();
      for (final ValueFilter allFilter : allFilters) {
        if (allFilter.archiveMatches(getFile())) {
          l.add(allFilter);
        }
      }
      if (l.size() == allFilters.length) {
        return allFilters;
      } else {
        ValueFilter[] result = new ValueFilter[l.size()];
        return (ValueFilter[]) l.toArray(result);
      }
    }
Returns true if the specified instance matches this spec. Any instance whose text id and
numeric id do not match this spec will not be selected for loading by this spec.
geode-core/src/main/java/org/apache/geode/internal/statistics/StatArchiveReader.java