Class AccomplishmentFilter

java.lang.Object
org.deltava.beans.stats.AccomplishmentFilter

class AccomplishmentFilter extends Object
A utility class to filter Accomplishments.
Since:
3.2
Version:
11.0
Author:
Luke
  • Method Details

    • matchesGeo

      static boolean matchesGeo(RoutePair rp, Accomplishment a)
      Determines whether a RoutePair updates an Accomplishment's counts, if an Accomplishment's unit uses geolocations.
      Parameters:
      rp - the RoutePair
      a - the Accomplishment
      Returns:
      TRUE if the RoutePair's airports meet the Accomplishment criteria
      See Also:
    • filter

      static <T> Collection<T> filter(Collection<T> values, Accomplishment a)
      Filters values to those listed as an Accomplishment's choices.
      Parameters:
      values - the values
      a - the Accomplishment bean
      Returns:
      a Collection of values
      See Also:
    • missing

      static <T> Collection<String> missing(Collection<T> values, Accomplishment a)
      Helper method to list missing values for an Accomplishment.
      Parameters:
      values - the values
      a - the Accomplishment bean
      Returns:
      a Collection of missing values
      See Also: