Enum Constant and Description |
---|
EQUAL |
GREATER_OR_EQUAL |
GREATER_THAN |
LESS_OR_EQUAL |
LESS_THAN |
LIKE |
NOT_EQUAL |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
evaluate(PropertyValue p1,
PropertyValue p2)
"operand2 always evaluates to a scalar value"
for multi-valued properties: if any of the value matches, then return true
|
java.lang.String |
toString()
Returns the name of this query operator.
|
static Operator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Operator EQUAL
public static final Operator NOT_EQUAL
public static final Operator GREATER_THAN
public static final Operator GREATER_OR_EQUAL
public static final Operator LESS_THAN
public static final Operator LESS_OR_EQUAL
public static final Operator LIKE
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract boolean evaluate(PropertyValue p1, PropertyValue p2)
public java.lang.String toString()
toString
in class java.lang.Enum<Operator>
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.