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