Top Description Methods
org.apache.commons.lang3.text

public Interface FormatFactory

Annotations
@Deprecated
Imports
java.text.Format, java.util.Locale

Deprecated

As of 3.6, use Apache Commons Text FormatFactory.

Format factory.
Since
2.4

Method Summary

Modifier and TypeMethod and Description
public Format

Returns:

The format instance.
getFormat
(String
The format type name.
name
,
String
Arguments used to create the format instance. This allows the FormatFactory to implement the "format style" concept from java.text.MessageFormat.
arguments
,
Locale
The locale, may be null.
locale
)

Create or retrieve a format instance.

Method Detail

getFormatback to summary
public Format getFormat(String name, String arguments, Locale locale)

Create or retrieve a format instance.

Parameters
name:String

The format type name.

arguments:String

Arguments used to create the format instance. This allows the FormatFactory to implement the "format style" concept from java.text.MessageFormat.

locale:Locale

The locale, may be null.

Returns:Format

The format instance.