Interface UsageFilter<T extends UseCount>
- Type Parameters:
T
- the UseCount class
- All Known Implementing Classes:
UsagePercentFilter
,UsageWindFilter
public interface UsageFilter<T extends UseCount>
A utility class to filter beans with usage counts.
- Since:
- 10.2
- Version:
- 10.2
- Author:
- Luke
- See Also:
-
Method Summary
-
Method Details
-
filter
Filters an individual bean.- Parameters:
uc
- the UseCount beanmax
- the maximum usage per bean within this Collectiontotal
- the total bean usage within this Collection- Returns:
- TRUE if the bean should be included, otherwise FALSE
-
filter
Filters a Collection of UseCount beans.- Parameters:
data
- the beans to filter- Returns:
- a filtered List of beans that met the criteria
-