Package org.apache.poi.ss.format
Class CellFormatCondition
java.lang.Object
org.apache.poi.ss.format.CellFormatCondition
This object represents a condition in a cell format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CellFormatConditiongetInstance(String opString, String constStr) Returns an instance of a condition object.abstract booleanpass(double value) Returnstrueif the given value passes the constraint's test.
-
Constructor Details
-
CellFormatCondition
public CellFormatCondition()
-
-
Method Details
-
getInstance
Returns an instance of a condition object.- Parameters:
opString- The operator as a string. One of<,<=,>,>=,=,==,!=or<>.constStr- The constant (such as12).- Returns:
- A condition object for the given condition.
-
pass
public abstract boolean pass(double value) Returnstrueif the given value passes the constraint's test.- Parameters:
value- The value to compare against.- Returns:
trueif the given value passes the constraint's test.
-