class DiscardValuesTooLongFilter extends MetadataFilterImpl {

  @Override
  public MetadataCollection filter(MetadataCollection original) {
    MetadataCollection result = new MetadataCollection();
    int maxLen = maxLength();
    result.addAll(original.stream().filter(e -> e.getValue().length() <= maxLen)
        .collect(Collectors.toList()));
    return result;
  }

  public  DiscardValuesTooLongFilter();
  public  DiscardValuesTooLongFilter(Integer i);

}