Package org.joda.time.format
Class PeriodFormat
- java.lang.Object
-
- org.joda.time.format.PeriodFormat
-
public class PeriodFormat extends java.lang.ObjectFactory that creates instances of PeriodFormatter.Period formatting is performed by the
PeriodFormatterclass. Three classes provide factory methods to create formatters, and this is one. The others areISOPeriodFormatandPeriodFormatterBuilder.PeriodFormat is thread-safe and immutable, and the formatters it returns are as well.
- Since:
- 1.0
- Author:
- Brian S O'Neill
- See Also:
ISOPeriodFormat,PeriodFormatterBuilder
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPeriodFormat()Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PeriodFormattergetDefault()Gets the default PeriodFormatter.
-
-
-
Method Detail
-
getDefault
public static PeriodFormatter getDefault()
Gets the default PeriodFormatter.This currently returns a word based formatter using English only. Hopefully future release will support localized period formatting.
- Returns:
- the formatter
-
-