Ejemplo n.º 1
0
  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);
  }
Ejemplo n.º 2
0
 public static String toStringAllOperator() {
   return Arrays.toString(SearchOperator.values());
 }