Class AccomplishmentFilter
java.lang.Object
org.deltava.beans.stats.AccomplishmentFilter
A utility class to filter Accomplishments.
- Since:
- 3.2
- Version:
- 11.0
- Author:
- Luke
-
Method Summary
Modifier and TypeMethodDescription(package private) static <T> Collection
<T> filter
(Collection<T> values, Accomplishment a) Filters values to those listed as an Accomplishment's choices.(package private) static boolean
matchesGeo
(RoutePair rp, Accomplishment a) Determines whether a RoutePair updates an Accomplishment's counts, if an Accomplishment's unit uses geolocations.(package private) static <T> Collection
<String> missing
(Collection<T> values, Accomplishment a) Helper method to list missing values for an Accomplishment.
-
Method Details
-
matchesGeo
Determines whether a RoutePair updates an Accomplishment's counts, if an Accomplishment's unit uses geolocations.- Parameters:
rp
- the RoutePaira
- the Accomplishment- Returns:
- TRUE if the RoutePair's airports meet the Accomplishment criteria
- See Also:
-
filter
Filters values to those listed as an Accomplishment's choices.- Parameters:
values
- the valuesa
- the Accomplishment bean- Returns:
- a Collection of values
- See Also:
-
missing
Helper method to list missing values for an Accomplishment.- Parameters:
values
- the valuesa
- the Accomplishment bean- Returns:
- a Collection of missing values
- See Also:
-