Package io.keikai.axyra.sheets.format
Class Formats
java.lang.Object
io.keikai.axyra.sheets.format.Formats
Number / date formatting with Excel format codes — the engine's formatting
pipeline exposed as stateless helpers (no workbook needed).
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringFormat a numeric value with an Excel format code, e.g.static StringFormat a numeric value with an Excel format code under a BCP-47 display locale: month / weekday names, AM/PM markers, and decimal / thousands separators localize, e.g.static ParsedValueClassify user-typed cell text the way Excel does when a value is entered into a cell: numbers (including"50%","$1,234.56","1/2","1.5E3"), dates and times (as Excel serials), booleans, formulas (leading=), and plain text.
-
Method Details
-
format
Format a numeric value with an Excel format code, e.g.format(1234.5, "#,##0.00")→"1,234.50", orformat(45000, "yyyy-mm-dd")for a date serial. -
format
Format a numeric value with an Excel format code under a BCP-47 display locale: month / weekday names, AM/PM markers, and decimal / thousands separators localize, e.g.format(1234.56, "#,##0.00", "de-DE")→"1.234,56". The format code itself stays invariant (.and,in the code always mean decimal / group flags). Anull, empty, or unknown tag falls back to en-US. -
parse
Classify user-typed cell text the way Excel does when a value is entered into a cell: numbers (including"50%","$1,234.56","1/2","1.5E3"), dates and times (as Excel serials), booleans, formulas (leading=), and plain text. Reference: ECMA-376 Part 1 §18.17.2.3 (data types).
-