
com.sksamuel.elastic4s.requests.common.Operator.scala Maven / Gradle / Ivy
package com.sksamuel.elastic4s.requests.common
sealed trait Operator
object Operator {
def valueOf(str: String): Operator = str.toLowerCase match {
case "or" => Or
case "and" => And
}
case object And extends Operator
case object Or extends Operator
def AND: And.type = And
def OR: Or.type = Or
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy