Class FieldValueAndOperator

java.lang.Object
ch.tocco.nice2.rest.entity.impl.search.FieldValueAndOperator

public class FieldValueAndOperator extends Object
Utility class to extract operator from string containing operator and value. The default operator is "is". Examples:

 * "foo" -> Value: "foo", Operator: "is"
 * "==foo" -> Value: "foo", Operator: "is"
 * "~=foo" -> Value: "foo", Operator: "like"
 * "===foo" -> Value: "foo", Operator: "fuzzy is"
 * ">foo" -> Value: "foo", Operator: "greater than"
 * "<foo" -> Value: "foo", Operator: "lower than"
 * ">=foo" -> Value: "foo", Operator: "greater than or equal"
 * "<=foo" -> Value: "foo", Operator: "lower than or equal"
 
  • Constructor Details

    • FieldValueAndOperator

      public FieldValueAndOperator(String stringValue)
  • Method Details