Package org.apache.poi.ss.formula
Class EvaluationConditionalFormatRule.ValueAndFormat
- java.lang.Object
-
- org.apache.poi.ss.formula.EvaluationConditionalFormatRule.ValueAndFormat
-
- All Implemented Interfaces:
Comparable<EvaluationConditionalFormatRule.ValueAndFormat>
- Enclosing class:
- EvaluationConditionalFormatRule
protected static class EvaluationConditionalFormatRule.ValueAndFormat extends Object implements Comparable<EvaluationConditionalFormatRule.ValueAndFormat>
Note: this class has a natural ordering that is inconsistent with equals.
-
-
Constructor Summary
Constructors Constructor Description ValueAndFormat(Double value, String format, DecimalFormat df)
ValueAndFormat(String value, String format)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EvaluationConditionalFormatRule.ValueAndFormat o)
Note: this class has a natural ordering that is inconsistent with equals.boolean
equals(Object obj)
String
getString()
Double
getValue()
int
hashCode()
boolean
isNumber()
String
toString()
-
-
-
Constructor Detail
-
ValueAndFormat
public ValueAndFormat(Double value, String format, DecimalFormat df)
-
-
Method Detail
-
isNumber
public boolean isNumber()
-
getValue
public Double getValue()
-
getString
public String getString()
-
compareTo
public int compareTo(EvaluationConditionalFormatRule.ValueAndFormat o)
Note: this class has a natural ordering that is inconsistent with equals.- Specified by:
compareTo
in interfaceComparable<EvaluationConditionalFormatRule.ValueAndFormat>
- Returns:
- value comparison
-
-