public static SearchOperator valueBySymbol(String symbol) throws SearchException { symbol = formatSymbol(symbol); for (SearchOperator operator : values()) { if (operator.getSymbol().equals(symbol)) { return operator; } } throw new SearchException("SearchOperator not method search operator symbol : " + symbol); }
public static String toStringAllOperator() { return Arrays.toString(SearchOperator.values()); }