All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.wavefront.predicates.PredicateMatchOp Maven / Gradle / Ivy

There is a newer version: 2023-22.3
Show newest version
package com.wavefront.predicates;

/**
 * Aggregation method for predicate matchers. Translates to allMatch(), anyMatch(), noneMatch().
 *
 * @author [email protected].
 */
enum PredicateMatchOp {
  ALL, ANY, NONE;

  static PredicateMatchOp fromString(String input) {
    for (PredicateMatchOp match : PredicateMatchOp.values()) {
      if (match.name().equalsIgnoreCase(input)) {
        return match;
      }
    }
    throw new IllegalArgumentException(input + " is not a valid match!");
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy