public static Optional<TrackerFilterEnum> getByValue(String filterAction) {
   if (valuesSet.contains(filterAction)) {
     return Optional.of(TrackerFilterEnum.valueOf(filterAction.toUpperCase()));
   } else {
     return Optional.absent();
   }
 }
示例#2
0
 private TrackerFilterEnum getFilterValue(String filterAction) {
   if (filterValues.contains(filterAction)) {
     return TrackerFilterEnum.valueOf(filterAction.toUpperCase());
   } else {
     return TrackerFilterEnum.ALL;
   }
 }