com.algolia.model.analytics.Operator Maven / Gradle / Ivy
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
package com.algolia.model.analytics;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
/**
* Character that characterizes how the filter is applied. For example, for a facet filter
* `facet:value`, `:` is the operator. For a numeric filter `count>50`, `>` is the operator.
*/
public enum Operator {
APPLY(":"),
LESS_THAN("<"),
LESS_EQUALS("<="),
EQUALS("="),
NOT_EQUALS("!="),
GREATER_THAN(">"),
GREATER_EQUALS(">=");
private final String value;
Operator(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static Operator fromValue(String value) {
for (Operator b : Operator.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy