Uses of Enum Class
net.time4j.format.TextWidth
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Support for the Badi calendar.
Support for the French revolutionary calendar.
Support for the traditional Hindu calendar family.
Defines common interfaces for any format support of Time4J.
Support for the historical ancestors of modern ISO-8601-standard.
Interval support.
-
Uses of TextWidth in net.time4j
Modifier and TypeMethodDescriptionDayPeriod.approximate(TextWidth width, OutputContext outputContext)
Represents a flexible day period (in the afternoon, at night etc).DayPeriod.fixed(TextWidth width, OutputContext outputContext)
Represents a fixed day period (am / pm / midnight / noon).Meridiem.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.Month.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.Quarter.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.Weekday.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.static Meridiem
Meridiem.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as AM/PM.static Month
Month.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as month.static Quarter
Quarter.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as quarter of year.static Weekday
Weekday.parse(CharSequence text, Locale locale, TextWidth width, OutputContext context)
Tries to interprete given text as day-of-week.PrettyTime.print(long amount, CalendarUnit unit, TextWidth width)
Formats given duration in calendar units.Formats given duration in clock units.PrettyTime.print(TemporalAmount threeten, TextWidth width)
Short-cut forprint(Duration.from(threeten), width)
.PrettyTime.print(TemporalAmount threeten, TextWidth width, boolean printZero, int maxLength)
Short-cut forprint(Duration.from(threeten), width, printZero, maxLength)
.Formats the total given duration.Formats given duration. -
Uses of TextWidth in net.time4j.calendar
Modifier and TypeMethodDescriptionChineseEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.CopticEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.CopticMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.EthiopianEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.EthiopianMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.HebrewEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.HebrewMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context, boolean leapYear)
Gets the description text dependent on the locale and style parameters.HijriEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.HijriMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.IndianEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.IndianMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.JucheEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.KoreanEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.MinguoEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.Nengo.getDisplayName(Locale locale, TextWidth width)
Obtains the localized name.PersianEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.PersianMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters.ThaiSolarEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters. -
Uses of TextWidth in net.time4j.calendar.bahai
Modifier and TypeMethodDescriptionBadiEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale. -
Uses of TextWidth in net.time4j.calendar.frenchrev
Modifier and TypeMethodDescriptionDayOfDecade.getDisplayName(Locale locale, TextWidth width, OutputContext oc)
Gets the description text dependent on the locale.FrenchRepublicanEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale.FrenchRepublicanMonth.getDisplayName(Locale locale, TextWidth width, OutputContext oc)
Gets the description text dependent on the locale. -
Uses of TextWidth in net.time4j.calendar.hindu
Modifier and TypeMethodDescriptionHinduEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and style parameters.HinduMonth.getDisplayName(Locale locale, TextWidth width, OutputContext context)
Gets the description text dependent on the locale and style parameters. -
Uses of TextWidth in net.time4j.format
Modifier and TypeFieldDescriptionstatic AttributeKey<TextWidth>
Attributes.TEXT_WIDTH
Determines the text width to be used in formatting and parsing.Modifier and TypeMethodDescriptionstatic TextWidth
Returns the enum constant of this class with the specified name.static TextWidth[]
TextWidth.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionString[]
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.Yields anAccessor
for all era names.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.CalendarText.getLeapMonths(TextWidth textWidth, OutputContext outputContext)
Yields anAccessor
for all months if a leap month is relevant.UnitPatternProvider.getListPattern(Locale lang, TextWidth width, int size)
Constructs a localized list pattern suitable for the use inMessageFormat.format(String, Object[])
.CalendarText.getMeridiems(TextWidth textWidth, OutputContext outputContext)
Yields anAccessor
for all am/pm-names.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.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.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.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.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.CalendarText.getQuarters(TextWidth textWidth, OutputContext outputContext)
Yields anAccessor
for all quarter years.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.CalendarText.getStdMonths(TextWidth textWidth, OutputContext outputContext)
Yields anAccessor
for all standard months.CalendarText.getWeekdays(TextWidth textWidth, OutputContext outputContext)
Yields anAccessor
for all weekday names.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.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[]
TextProvider.meridiems(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext)
String[]
TextProvider.months(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext, boolean leapForm)
String[]
TextProvider.quarters(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext)
String[]
TextProvider.weekdays(String calendarType, Locale locale, TextWidth textWidth, OutputContext outputContext)
-
Uses of TextWidth in net.time4j.history
Modifier and TypeMethodDescriptionHistoricEra.getAlternativeName(Locale locale, TextWidth width)
Gets an alternative description text dependent on the locale and text width.HistoricEra.getDisplayName(Locale locale, TextWidth width)
Gets the description text dependent on the locale and text width. -
Uses of TextWidth in net.time4j.range