Package common.types
Interface Filter<T>
- All Known Implementing Classes:
MoneroOutputQuery
,MoneroTransferQuery
,MoneroTxQuery
public interface Filter<T>
Base filter.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Set<T>
Returns a new set comprised of elements from the given set that meet the filter's criteria.static <T> List<T>
Returns a new list comprised of elements from the given list that meet the filter's criteria.boolean
meetsCriteria
(T item) Indicates if the given item meets the criteria of this filter.
-
Method Details
-
meetsCriteria
Indicates if the given item meets the criteria of this filter.- Parameters:
item
- is the item to test- Returns:
- true if the item meets the criteria of this filter, false otherwise
-
apply
Returns a new list comprised of elements from the given list that meet the filter's criteria.- Type Parameters:
T
- templated type- Parameters:
filter
- filters the itemsitems
- are the items to filter- Returns:
- the items that meet this filter's criteria
-
apply
Returns a new set comprised of elements from the given set that meet the filter's criteria.- Type Parameters:
T
- templated type- Parameters:
filter
- filters the itemsitems
- are the items to filter- Returns:
- the items that meet this filter's criteria
-