Formatters

Formatting tools for presenting OsidPrimitives.

Formatters

NumericFormatter

Writes and parses a number in the digit grouping and separators of a number format Type. Plain, scientific and engineering notation.

format(value, type) · formatScientific · formatEngineering · formatScientificPowerOfTen · parseInteger · parseLong · parseBigInteger · parseBigDecimal
Javadoc →

DateFormatter

Writes a date in the field order and separators of a date format Type.

format(datetime, type) · formatNamed(datetime, type) · formatAbbreviated(datetime, type)
Javadoc →

TimeFormatter

Writes a Time in the counting and separators of a time format Type.

format(time, type) · format(time, type, language) · format(time, type, language, numbers)
Javadoc →

Format Types

Number Format Types

Formats numbers — which character separates the groups and which the fraction, and whether the groups run in threes, in the Indian lakh and crore, in East Asian myriads, or not at all.

Javadoc →

Date Format Types

Format dates — the order the year, month and day are given in and what stands between them, from ISO 8601 through the slashed, dotted and hyphenated forms to the ideographic.

Javadoc →

Time Format Types

Formats times — whether the hour is counted through the day or in halves of it, and what stands between the fields, whether a separator or the unit each field is closed by.

Javadoc →