Generalised filters

This commit is contained in:
Luca Frosini 2021-11-22 14:18:12 +01:00
parent 3bd6b02fdc
commit 01c740ef30
2 changed files with 3 additions and 3 deletions

View File

@ -72,7 +72,7 @@ public interface AccountingPersistenceBackendQuery {
* If the list contains more than one filter with the same key an Exception is thrown
* when trying to query.
*/
public void setFilters(Collection<Filter> filters);
public void setFilters(Collection<? extends Filter> filters);
/**
* Query the persistence obtaining a Map where the date is the key and the

View File

@ -61,7 +61,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
protected TemporalConstraint temporalConstraint;
protected Set<String> contexts;
protected Collection<Filter> filters;
protected Collection<? extends Filter> filters;
protected ObjectMapper objectMapper;
@ -91,7 +91,7 @@ public class AccountingPersistenceQuery implements AccountingPersistenceBackendQ
}
@Override
public void setFilters(Collection<Filter> filters) {
public void setFilters(Collection<? extends Filter> filters) {
this.filters = filters;
accountingPersistenceBackendQuery.setFilters(filters);
}