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 PeriodPrinter |
PeriodFormatterBuilder.Separator.iAfterPrinter |
private PeriodPrinter |
PeriodFormatterBuilder.Separator.iBeforePrinter |
private PeriodPrinter |
PeriodFormatter.iPrinter
The internal printer used to output the datetime.
|
private PeriodPrinter[] |
PeriodFormatterBuilder.Composite.iPrinters |
Modifier and Type | Method and Description |
---|---|
PeriodPrinter |
PeriodFormatter.getPrinter()
Gets the internal printer object that performs the real printing work.
|
private PeriodPrinter |
PeriodFormat.DynamicWordBased.getPrinter(java.util.Locale locale) |
PeriodPrinter |
PeriodFormatterBuilder.toPrinter()
Internal method to create a PeriodPrinter 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) |