public abstract class CellFormatCondition
extends java.lang.Object
Constructor and Description |
---|
CellFormatCondition() |
Modifier and Type | Method and Description |
---|---|
static CellFormatCondition |
getInstance(java.lang.String opString, java.lang.String constStr)
Returns an instance of a condition object.
(返回条件对象的实例。)
|
abstract boolean |
pass(double value)
Returns
true if the given value passes the constraint's test.
(如果给定值通过约束测试,则返回 true。)
|
public static CellFormatCondition getInstance(java.lang.String opString, java.lang.String constStr)
opString
- The operator as a string. One of
"<",
"<=",
">",
">=",
"=",
"==",
"!=", or
"<>".
(opString - 作为字符串的运算符。 "<"、"<="、">"、">="、"="、"=="、"!=" 或 "<>" 之一。)
constStr
- The constant (such as
"12").
(constStr - 常量(例如“12”)。)
public abstract boolean pass(double value)
value
- The value to compare against.
(value - 要比较的值。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.