Class ExcelGeneralNumberFormat
java.lang.Object
java.text.Format
org.xlsx4j.org.apache.poi.ss.usermodel.ExcelGeneralNumberFormat
- All Implemented Interfaces:
java.io.Serializable,java.lang.Cloneable
public class ExcelGeneralNumberFormat
extends java.text.Format
A format that formats a double as Excel would, ignoring FieldPosition.
All other operations are unsupported.
- See Also:
- Serialized Form
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description ExcelGeneralNumberFormat(java.util.Locale locale) -
Method Summary
Modifier and Type Method Description java.lang.StringBufferformat(java.lang.Object number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)java.lang.ObjectparseObject(java.lang.String source, java.text.ParsePosition pos)
-
Constructor Details
-
ExcelGeneralNumberFormat
public ExcelGeneralNumberFormat(java.util.Locale locale)
-
-
Method Details
-
format
public java.lang.StringBuffer format(java.lang.Object number, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)- Specified by:
formatin classjava.text.Format
-
parseObject
public java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)- Specified by:
parseObjectin classjava.text.Format
-