class DateTimeFormatInfoAdapter extends DefaultDateTimeFormatInfo
DateTimeConstants
implementation suitable for
use with something that wants a
DateTimeFormatInfo
. Values not present
in DateTimeConstants
receive default values.Constructor and Description |
---|
DateTimeFormatInfoAdapter(DateTimeConstants dtc) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
ampms()
Returns array of strings containing abbreviations for Ante Meridiem and
Post Meridiem.
|
java.lang.String |
dateFormatFull()
Returns a "full" date format.
|
java.lang.String |
dateFormatLong()
Returns a "long" date format.
|
java.lang.String |
dateFormatMedium()
Returns a "medium" date format.
|
java.lang.String |
dateFormatShort()
Returns a "short" date format.
|
java.lang.String[] |
erasFull()
Returns an array of the full era names.
|
java.lang.String[] |
erasShort()
Returns abbreviations of the era names.
|
int |
firstDayOfTheWeek()
Returns the day which generally comes first in a weekly calendar view, as
an index into the return value of
DateTimeFormatInfo.weekdaysFull() . |
java.lang.String[] |
monthsFull()
Returns an array of full month names.
|
java.lang.String[] |
monthsFullStandalone()
Returns an array of month names for use in a stand-alone context.
|
java.lang.String[] |
monthsNarrow()
Returns an array of the shortest abbreviations for months, typically a
single character and not guaranteed to be unique.
|
java.lang.String[] |
monthsNarrowStandalone()
Returns an array of the shortest abbreviations for months suitable for use
in a stand-alone context, typically a single character and not guaranteed
to be unique.
|
java.lang.String[] |
monthsShort()
Returns an array of month abbreviations.
|
java.lang.String[] |
monthsShortStandalone()
Returns an array of month abbreviations, suitable for use in a stand-alone
context.
|
java.lang.String[] |
quartersFull()
Returns an array of full quarter names.
|
java.lang.String[] |
quartersShort()
Returns an array of abbreviations for quarters.
|
java.lang.String |
timeFormatFull()
Returns a "full" time format.
|
java.lang.String |
timeFormatLong()
Returns a "long" time format.
|
java.lang.String |
timeFormatMedium()
Returns a "medium" time format.
|
java.lang.String |
timeFormatShort()
Returns a "short" time format.
|
java.lang.String[] |
weekdaysFull()
Returns an array of the full names of weekdays.
|
java.lang.String[] |
weekdaysFullStandalone()
Returns an array of the full names of weekdays, suitable for use in a
stand-alone context.
|
java.lang.String[] |
weekdaysNarrow()
Returns an array of the shortest abbreviations for weekdays, typically a
single character and not guaranteed to be unique.
|
java.lang.String[] |
weekdaysNarrowStandalone()
Returns an array of the shortest abbreviations for weekdays suitable for
use in a stand-alone context, typically a single character and not
guaranteed to be unique.
|
java.lang.String[] |
weekdaysShort()
Returns an array of abbreviations for weekdays.
|
java.lang.String[] |
weekdaysShortStandalone()
Returns an array of abbreviations for weekdays, suitable for use in a
stand-alone context.
|
int |
weekendEnd()
Returns the day which ends the weekend, as an index into the return value
of
DateTimeFormatInfo.weekdaysFull() . |
int |
weekendStart()
Returns the day which starts the weekend, as an index into the return value
of
DateTimeFormatInfo.weekdaysFull() . |
dateFormat, dateTime, dateTimeFull, dateTimeLong, dateTimeMedium, dateTimeShort, formatDay, formatHour12Minute, formatHour12MinuteSecond, formatHour24Minute, formatHour24MinuteSecond, formatMinuteSecond, formatMonthAbbrev, formatMonthAbbrevDay, formatMonthFull, formatMonthFullDay, formatMonthFullWeekdayDay, formatMonthNumDay, formatYear, formatYearMonthAbbrev, formatYearMonthAbbrevDay, formatYearMonthFull, formatYearMonthFullDay, formatYearMonthNum, formatYearMonthNumDay, formatYearMonthWeekdayDay, formatYearQuarterFull, formatYearQuarterShort, timeFormat
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dateFormat, dateTime, dateTimeFull, dateTimeLong, dateTimeMedium, dateTimeShort, formatDay, formatHour12Minute, formatHour12MinuteSecond, formatHour24Minute, formatHour24MinuteSecond, formatMinuteSecond, formatMonthAbbrev, formatMonthAbbrevDay, formatMonthFull, formatMonthFullDay, formatMonthFullWeekdayDay, formatMonthNumDay, formatYear, formatYearMonthAbbrev, formatYearMonthAbbrevDay, formatYearMonthFull, formatYearMonthFullDay, formatYearMonthNum, formatYearMonthNumDay, formatYearMonthWeekdayDay, formatYearQuarterFull, formatYearQuarterShort, timeFormat
public DateTimeFormatInfoAdapter(DateTimeConstants dtc)
public java.lang.String[] ampms()
DateTimeFormatInfo
ampms
in interface DateTimeFormatInfo
ampms
in class DefaultDateTimeFormatInfo
public java.lang.String dateFormatFull()
DateTimeFormatInfo
dateFormatFull
in interface DateTimeFormatInfo
dateFormatFull
in class DefaultDateTimeFormatInfo
public java.lang.String dateFormatLong()
DateTimeFormatInfo
dateFormatLong
in interface DateTimeFormatInfo
dateFormatLong
in class DefaultDateTimeFormatInfo
public java.lang.String dateFormatMedium()
DateTimeFormatInfo
dateFormatMedium
in interface DateTimeFormatInfo
dateFormatMedium
in class DefaultDateTimeFormatInfo
public java.lang.String dateFormatShort()
DateTimeFormatInfo
dateFormatShort
in interface DateTimeFormatInfo
dateFormatShort
in class DefaultDateTimeFormatInfo
public java.lang.String[] erasFull()
DateTimeFormatInfo
erasFull
in interface DateTimeFormatInfo
erasFull
in class DefaultDateTimeFormatInfo
public java.lang.String[] erasShort()
DateTimeFormatInfo
erasShort
in interface DateTimeFormatInfo
erasShort
in class DefaultDateTimeFormatInfo
public int firstDayOfTheWeek()
DateTimeFormatInfo
DateTimeFormatInfo.weekdaysFull()
.firstDayOfTheWeek
in interface DateTimeFormatInfo
firstDayOfTheWeek
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsFull()
DateTimeFormatInfo
monthsFull
in interface DateTimeFormatInfo
monthsFull
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsFullStandalone()
DateTimeFormatInfo
monthsFullStandalone
in interface DateTimeFormatInfo
monthsFullStandalone
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsNarrow()
DateTimeFormatInfo
monthsNarrow
in interface DateTimeFormatInfo
monthsNarrow
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsNarrowStandalone()
DateTimeFormatInfo
monthsNarrowStandalone
in interface DateTimeFormatInfo
monthsNarrowStandalone
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsShort()
DateTimeFormatInfo
monthsShort
in interface DateTimeFormatInfo
monthsShort
in class DefaultDateTimeFormatInfo
public java.lang.String[] monthsShortStandalone()
DateTimeFormatInfo
monthsShortStandalone
in interface DateTimeFormatInfo
monthsShortStandalone
in class DefaultDateTimeFormatInfo
public java.lang.String[] quartersFull()
DateTimeFormatInfo
quartersFull
in interface DateTimeFormatInfo
quartersFull
in class DefaultDateTimeFormatInfo
public java.lang.String[] quartersShort()
DateTimeFormatInfo
quartersShort
in interface DateTimeFormatInfo
quartersShort
in class DefaultDateTimeFormatInfo
public java.lang.String timeFormatFull()
DateTimeFormatInfo
timeFormatFull
in interface DateTimeFormatInfo
timeFormatFull
in class DefaultDateTimeFormatInfo
public java.lang.String timeFormatLong()
DateTimeFormatInfo
timeFormatLong
in interface DateTimeFormatInfo
timeFormatLong
in class DefaultDateTimeFormatInfo
public java.lang.String timeFormatMedium()
DateTimeFormatInfo
timeFormatMedium
in interface DateTimeFormatInfo
timeFormatMedium
in class DefaultDateTimeFormatInfo
public java.lang.String timeFormatShort()
DateTimeFormatInfo
timeFormatShort
in interface DateTimeFormatInfo
timeFormatShort
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysFull()
DateTimeFormatInfo
weekdaysFull
in interface DateTimeFormatInfo
weekdaysFull
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysFullStandalone()
DateTimeFormatInfo
weekdaysFullStandalone
in interface DateTimeFormatInfo
weekdaysFullStandalone
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysNarrow()
DateTimeFormatInfo
weekdaysNarrow
in interface DateTimeFormatInfo
weekdaysNarrow
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysNarrowStandalone()
DateTimeFormatInfo
weekdaysNarrowStandalone
in interface DateTimeFormatInfo
weekdaysNarrowStandalone
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysShort()
DateTimeFormatInfo
weekdaysShort
in interface DateTimeFormatInfo
weekdaysShort
in class DefaultDateTimeFormatInfo
public java.lang.String[] weekdaysShortStandalone()
DateTimeFormatInfo
weekdaysShortStandalone
in interface DateTimeFormatInfo
weekdaysShortStandalone
in class DefaultDateTimeFormatInfo
public int weekendEnd()
DateTimeFormatInfo
DateTimeFormatInfo.weekdaysFull()
.
Note that this value may be numerically less than
DateTimeFormatInfo.weekendStart()
- for example, DateTimeFormatInfo.weekendStart()
of 6 and
DateTimeFormatInfo.weekendEnd()
of 0 means Saturday and Sunday are the weekend.
weekendEnd
in interface DateTimeFormatInfo
weekendEnd
in class DefaultDateTimeFormatInfo
public int weekendStart()
DateTimeFormatInfo
DateTimeFormatInfo.weekdaysFull()
.weekendStart
in interface DateTimeFormatInfo
weekendStart
in class DefaultDateTimeFormatInfo