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