public final class ContainValueCondition extends ContainCondition
Modifier and Type | Method and Description |
---|---|
ContainValueOperator |
getOperator()
Gets the operator of this
ContainValueCondition . |
Object |
getValue()
Gets the value of this
ContainValueCondition . |
Object |
getValue2()
Gets the second value of this
ContainValueCondition used with ContainValueOperator.BETWEEN and ContainValueOperator.NOT_BETWEEN operators. |
void |
setOperator(ContainValueOperator value)
Sets the operator of this
ContainValueCondition . |
void |
setValue(Object value)
Sets the value of this
ContainValueCondition . |
void |
setValue2(Object value)
Sets the second value of this
ContainValueCondition used with ContainValueOperator.BETWEEN and ContainValueOperator.NOT_BETWEEN operators. |
String |
toString()
Returns a
String that represents this ContainValueCondition instance. |
getConditionType, getContainConditionType, getStyle
getRule
public ContainValueOperator getOperator()
ContainValueCondition
.ContainValueCondition
.public Object getValue()
Gets the value of this ContainValueCondition
.
Value can be either constant or formula.
If value is constant, then it cannot be null
and value's type must be supported in ExcelCell's value
(types supported in ExcelFile.supportsType(Class)
).
If value is formula, then value type must be String
and it must start with '='.
ContainValueCondition
.public Object getValue2()
Gets the second value of this ContainValueCondition
used with ContainValueOperator.BETWEEN
and ContainValueOperator.NOT_BETWEEN
operators.
Value can be either constant or formula.
If value is constant, then it cannot be null
and value's type must be supported in ExcelCell's value
(types supported in ExcelFile.supportsType(Class)
).
If value is formula, then value type must be String
and it must start with '='.
ContainValueCondition
used with ContainValueOperator.BETWEEN
and ContainValueOperator.NOT_BETWEEN
operators.public void setOperator(ContainValueOperator value)
ContainValueCondition
.value
- The operator of this ContainValueCondition
.public void setValue(Object value)
Sets the value of this ContainValueCondition
.
Value can be either constant or formula.
If value is constant, then it cannot be null
and value's type must be supported in ExcelCell's value
(types supported in ExcelFile.supportsType(Class)
).
If value is formula, then value type must be String
and it must start with '='.
value
- The value of this ContainValueCondition
.NullPointerException
- Value is null
.IllegalArgumentException
- Value's type is not supported.public void setValue2(Object value)
Sets the second value of this ContainValueCondition
used with ContainValueOperator.BETWEEN
and ContainValueOperator.NOT_BETWEEN
operators.
Value can be either constant or formula.
If value is constant, then it cannot be null
and value's type must be supported in ExcelCell's value
(types supported in ExcelFile.supportsType(Class)
).
If value is formula, then value type must be String
and it must start with '='.
value
- The second value of this ContainValueCondition
used with ContainValueOperator.BETWEEN
and ContainValueOperator.NOT_BETWEEN
operators.NullPointerException
- Value is null
and operator
is ContainValueOperator.BETWEEN
or ContainValueOperator.NOT_BETWEEN
.IllegalArgumentException
- Value's type is not supported.public String toString()
String
that represents this ContainValueCondition
instance.
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).
toString
in class ContainCondition
String
that represents this ContainValueCondition
instance.© GemBox Ltd. — All rights reserved.