Package | Description |
---|---|
org.joda.time.format |
Provides printing and parsing support for instants and durations.
|
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PeriodFormat.DynamicWordBased
Printer/parser that reacts to the locale and changes the word-based
pattern if necessary.
|
(package private) static class |
PeriodFormatterBuilder.Composite
Composite implementation that merges other fields to create a full pattern.
|
(package private) static class |
PeriodFormatterBuilder.FieldFormatter
Formats the numeric value of a field, potentially with prefix/suffix.
|
(package private) static class |
PeriodFormatterBuilder.Literal
Handles a simple literal piece of text.
|
(package private) static class |
PeriodFormatterBuilder.Separator
Handles a separator, that splits the fields into multiple parts.
|
Modifier and Type | Field and Description |
---|---|
private PeriodParser |
PeriodFormatterBuilder.Separator.iAfterParser |
private PeriodParser |
PeriodFormatterBuilder.Separator.iBeforeParser |
private PeriodParser |
PeriodFormatter.iParser
The internal parser used to output the datetime.
|
private PeriodParser[] |
PeriodFormatterBuilder.Composite.iParsers |
Modifier and Type | Method and Description |
---|---|
PeriodParser |
PeriodFormatter.getParser()
Gets the internal parser object that performs the real parsing work.
|
private PeriodParser |
PeriodFormat.DynamicWordBased.getParser(java.util.Locale locale) |
PeriodParser |
PeriodFormatterBuilder.toParser()
Internal method to create a PeriodParser instance using all the
appended elements.
|
Modifier and Type | Method and Description |
---|---|
PeriodFormatterBuilder |
PeriodFormatterBuilder.append(PeriodPrinter printer,
PeriodParser parser)
Appends a printer parser pair.
|
private PeriodFormatterBuilder |
PeriodFormatterBuilder.append0(PeriodPrinter printer,
PeriodParser parser) |
(package private) PeriodFormatterBuilder.Separator |
PeriodFormatterBuilder.Separator.finish(PeriodPrinter afterPrinter,
PeriodParser afterParser) |
Constructor and Description |
---|
PeriodFormatter(PeriodPrinter printer,
PeriodParser parser)
Creates a new formatter, however you will normally use the factory
or the builder.
|
PeriodFormatter(PeriodPrinter printer,
PeriodParser parser,
java.util.Locale locale,
PeriodType type)
Constructor.
|
Separator(java.lang.String text,
java.lang.String finalText,
java.lang.String[] variants,
PeriodPrinter beforePrinter,
PeriodParser beforeParser,
boolean useBefore,
boolean useAfter) |