public static enum EvaluationConditionalFormatRule.OperatorEnum extends java.lang.Enum<EvaluationConditionalFormatRule.OperatorEnum>
Enum Constant and Description |
---|
BETWEEN |
EQUAL |
GREATER_OR_EQUAL |
GREATER_THAN |
LESS_OR_EQUAL |
LESS_THAN |
NO_COMPARISON |
NOT_BETWEEN |
NOT_EQUAL |
Modifier and Type | Method and Description |
---|---|
abstract <C extends java.lang.Comparable<C>> |
isValid(C cellValue,
C v1,
C v2)
Evaluates comparison using operator instance rules
|
boolean |
isValidForIncompatibleTypes()
Called when the cell and comparison values are of different data types
Needed for negation operators, which should return true.
|
static EvaluationConditionalFormatRule.OperatorEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EvaluationConditionalFormatRule.OperatorEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvaluationConditionalFormatRule.OperatorEnum NO_COMPARISON
public static final EvaluationConditionalFormatRule.OperatorEnum BETWEEN
public static final EvaluationConditionalFormatRule.OperatorEnum NOT_BETWEEN
public static final EvaluationConditionalFormatRule.OperatorEnum EQUAL
public static final EvaluationConditionalFormatRule.OperatorEnum NOT_EQUAL
public static final EvaluationConditionalFormatRule.OperatorEnum GREATER_THAN
public static final EvaluationConditionalFormatRule.OperatorEnum LESS_THAN
public static final EvaluationConditionalFormatRule.OperatorEnum GREATER_OR_EQUAL
public static final EvaluationConditionalFormatRule.OperatorEnum LESS_OR_EQUAL
public static EvaluationConditionalFormatRule.OperatorEnum[] values()
for (EvaluationConditionalFormatRule.OperatorEnum c : EvaluationConditionalFormatRule.OperatorEnum.values()) System.out.println(c);
public static EvaluationConditionalFormatRule.OperatorEnum 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 <C extends java.lang.Comparable<C>> boolean isValid(C cellValue, C v1, C v2)
cellValue
- won't be null, assumption is previous checks handled thatv1
- if null, per Excel behavior various results depending on the type of cellValue and the specific enum instancev2
- null if not needed. If null when needed, various results, per Excel behaviorpublic boolean isValidForIncompatibleTypes()
Copyright 2020 The Apache Software Foundation or its licensors, as applicable.