| Package | Description |
|---|---|
| net.time4j.format |
Format support of Time4J.
|
| Modifier and Type | Method and Description |
|---|---|
abstract PluralCategory |
PluralRules.getCategory(long count)
Determines the plural category for given number of units.
|
static PluralCategory |
PluralCategory.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PluralCategory[] |
PluralCategory.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
String |
UnitPatternProvider.getDayPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of days in the past or future.
|
String |
UnitPatternProvider.getDayPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of days.
|
String |
UnitPatterns.getDays(TextWidth width,
PluralCategory category)
Yields a pattern for days which optionally contains a placeholder
of the form "{0}" standing for the count of days.
|
String |
UnitPatterns.getDaysInFuture(PluralCategory category)
Yields a pattern for days which optionally contains a placeholder
of the form "{0}" standing for the count of days in the
future.
|
String |
UnitPatterns.getDaysInPast(PluralCategory category)
Yields a pattern for days which optionally contains a placeholder
of the form "{0}" standing for the count of days in the
past.
|
String |
UnitPatternProvider.getHourPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of hours in the past or future.
|
String |
UnitPatternProvider.getHourPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of hours.
|
String |
UnitPatterns.getHours(TextWidth width,
PluralCategory category)
Yields a pattern for hours which optionally contains a placeholder
of the form "{0}" standing for the count of hours.
|
String |
UnitPatterns.getHoursInFuture(PluralCategory category)
Yields a pattern for hours which optionally contains a placeholder
of the form "{0}" standing for the count of hours in the
future.
|
String |
UnitPatterns.getHoursInPast(PluralCategory category)
Yields a pattern for hours which optionally contains a placeholder
of the form "{0}" standing for the count of hours in the
past.
|
String |
UnitPatternProvider.getMicroPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of microseconds.
|
String |
UnitPatterns.getMicros(TextWidth width,
PluralCategory category)
Yields a pattern for microseconds which optionally contains a
placeholder of the form "{0}" standing for the count of
microseconds.
|
String |
UnitPatternProvider.getMilliPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of milliseconds.
|
String |
UnitPatterns.getMillis(TextWidth width,
PluralCategory category)
Yields a pattern for milliseconds which optionally contains a
placeholder of the form "{0}" standing for the count of
milliseconds.
|
String |
UnitPatternProvider.getMinutePattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of minutes in the past or future.
|
String |
UnitPatternProvider.getMinutePattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of minutes.
|
String |
UnitPatterns.getMinutes(TextWidth width,
PluralCategory category)
Yields a pattern for minutes which optionally contains a placeholder
of the form "{0}" standing for the count of minutes.
|
String |
UnitPatterns.getMinutesInFuture(PluralCategory category)
Yields a pattern for minutes which optionally contains a placeholder
of the form "{0}" standing for the count of minutes in the
future.
|
String |
UnitPatterns.getMinutesInPast(PluralCategory category)
Yields a pattern for minutes which optionally contains a placeholder
of the form "{0}" standing for the count of minutes in the
past.
|
String |
UnitPatternProvider.getMonthPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of months in the past or future.
|
String |
UnitPatternProvider.getMonthPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of months.
|
String |
UnitPatterns.getMonths(TextWidth width,
PluralCategory category)
Yields a pattern for months which optionally contains a placeholder
of the form "{0}" standing for the count of months.
|
String |
UnitPatterns.getMonthsInFuture(PluralCategory category)
Yields a pattern for months which optionally contains a placeholder
of the form "{0}" standing for the count of months in the
future.
|
String |
UnitPatterns.getMonthsInPast(PluralCategory category)
Yields a pattern for months which optionally contains a placeholder
of the form "{0}" standing for the count of months in the
past.
|
String |
UnitPatternProvider.getNanoPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of nanoseconds.
|
String |
UnitPatterns.getNanos(TextWidth width,
PluralCategory category)
Yields a pattern for nanoseconds which optionally contains a
placeholder of the form "{0}" standing for the count of
nanoseconds.
|
String |
UnitPatternProvider.getSecondPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of seconds in the past or future.
|
String |
UnitPatternProvider.getSecondPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of seconds.
|
String |
UnitPatterns.getSeconds(TextWidth width,
PluralCategory category)
Yields a pattern for seconds which optionally contains a placeholder
of the form "{0}" standing for the count of seconds.
|
String |
UnitPatterns.getSecondsInFuture(PluralCategory category)
Yields a pattern for seconds which optionally contains a placeholder
of the form "{0}" standing for the count of seconds in the
future.
|
String |
UnitPatterns.getSecondsInPast(PluralCategory category)
Yields a pattern for seconds which optionally contains a placeholder
of the form "{0}" standing for the count of seconds in the
past.
|
String |
UnitPatternProvider.getWeekPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of weeks in the past or future.
|
String |
UnitPatternProvider.getWeekPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of weeks.
|
String |
UnitPatterns.getWeeks(TextWidth width,
PluralCategory category)
Yields a pattern for weeks which optionally contains a placeholder
of the form "{0}" standing for the count of weeks.
|
String |
UnitPatterns.getWeeksInFuture(PluralCategory category)
Yields a pattern for weeks which optionally contains a placeholder
of the form "{0}" standing for the count of weeks in the
future.
|
String |
UnitPatterns.getWeeksInPast(PluralCategory category)
Yields a pattern for weeks which optionally contains a placeholder
of the form "{0}" standing for the count of weeks in the
past.
|
String |
UnitPatternProvider.getYearPattern(Locale lang,
boolean future,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of years in the past or future.
|
String |
UnitPatternProvider.getYearPattern(Locale lang,
TextWidth width,
PluralCategory category)
Yields the localized unit pattern with unit name and a placeholder
"{0}" for the count of years.
|
String |
UnitPatterns.getYears(TextWidth width,
PluralCategory category)
Yields a pattern for years which optionally contains a placeholder
of the form "{0}" standing for the count of years.
|
String |
UnitPatterns.getYearsInFuture(PluralCategory category)
Yields a pattern for years which optionally contains a placeholder
of the form "{0}" standing for the count of years in the
future.
|
String |
UnitPatterns.getYearsInPast(PluralCategory category)
Yields a pattern for years which optionally contains a placeholder
of the form "{0}" standing for the count of years in the
past.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFormatter.Builder<T> |
ChronoFormatter.Builder.addOrdinal(ChronoElement<Integer> element,
Map<PluralCategory,String> indicators)
Defines an ordinal format for given chronological
element.
|
Copyright © 2014. All rights reserved.