Package org.apache.poi.ss.formula
Enum Class DataValidationEvaluator.OperatorEnum
java.lang.Object
java.lang.Enum<DataValidationEvaluator.OperatorEnum>
org.apache.poi.ss.formula.DataValidationEvaluator.OperatorEnum
- All Implemented Interfaces:
Serializable
,Comparable<DataValidationEvaluator.OperatorEnum>
,Constable
- Enclosing class:
- DataValidationEvaluator
public static enum DataValidationEvaluator.OperatorEnum
extends Enum<DataValidationEvaluator.OperatorEnum>
Not calling it OperatorType to avoid confusion for now with DataValidationConstraint.OperatorType.
Definition order matches OOXML type ID indexes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
Evaluates comparison using operator instance rulesReturns the enum constant of this class with the specified name.static DataValidationEvaluator.OperatorEnum[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BETWEEN
-
NOT_BETWEEN
-
EQUAL
-
NOT_EQUAL
-
GREATER_THAN
-
LESS_THAN
-
GREATER_OR_EQUAL
-
LESS_OR_EQUAL
-
-
Field Details
-
IGNORED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
isValid
Evaluates comparison using operator instance rules- Parameters:
cellValue
- won't be null, assumption is previous checks handled thatv1
- if null, value assumed invalid, anything passes, per Excel behaviorv2
- null if not needed. If null when needed, assume anything passes, per Excel behavior- Returns:
- true if the comparison is valid
-