java.lang.Object | |||
↳ | java.text.AttributedCharacterIterator.Attribute | ||
↳ | java.text.Format.Field | ||
↳ | java.text.DateFormat.Field |
The instances of this inner class are used as attribute keys and values
in AttributedCharacterIterator
that the
formatToCharacterIterator(Object)
method returns.
There is no public constructor in this class, the only instances are the constants defined here.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AM_PM | Marks the time indicator part of a date. | ||||||||||
DAY_OF_MONTH | Marks the day of the month part of a date. | ||||||||||
DAY_OF_WEEK | Marks the day of the week part of a date. | ||||||||||
DAY_OF_WEEK_IN_MONTH | Marks the day of the week in the month part of a date. | ||||||||||
DAY_OF_YEAR | Marks the day of the year part of a date. | ||||||||||
ERA | Marks the era part of a date. | ||||||||||
HOUR0 | Marks the hour part of a date (0-11). | ||||||||||
HOUR1 | Marks the hour part of a date (1-12). | ||||||||||
HOUR_OF_DAY0 | Marks the hour of the day part of a date (0-11). | ||||||||||
HOUR_OF_DAY1 | Marks the hour of the day part of a date (1-12). | ||||||||||
MILLISECOND | Marks the millisecond part of a time. | ||||||||||
MINUTE | Marks the minute part of a time. | ||||||||||
MONTH | Marks the month part of a date. | ||||||||||
SECOND | Marks the second part of a time. | ||||||||||
TIME_ZONE | Marks the time zone part of a date. | ||||||||||
WEEK_OF_MONTH | Marks the week of the month part of a date. | ||||||||||
WEEK_OF_YEAR | Marks the week of the year part of a date. | ||||||||||
YEAR | Marks the year part of a date. |
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.text.AttributedCharacterIterator.Attribute
|
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new instance of
DateFormat.Field with the given
fieldName and calendar field.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Calendar field that this field represents.
| |||||||||||
Returns the
DateFormat.Field instance for the given calendar
field.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.text.AttributedCharacterIterator.Attribute
| |||||||||||
From class
java.lang.Object
|
Marks the time indicator part of a date.
Marks the day of the month part of a date.
Marks the day of the week part of a date.
Marks the day of the week in the month part of a date.
Marks the day of the year part of a date.
Marks the hour part of a date (0-11).
Marks the hour part of a date (1-12).
Marks the hour of the day part of a date (0-11).
Marks the hour of the day part of a date (1-12).
Marks the millisecond part of a time.
Marks the time zone part of a date.
Marks the week of the month part of a date.
Marks the week of the year part of a date.
Constructs a new instance of DateFormat.Field
with the given
fieldName and calendar field.
fieldName | the field name. |
---|---|
calendarField | the calendar field type of the field. |
Returns the Calendar field that this field represents.
Returns the DateFormat.Field
instance for the given calendar
field.
calendarField | a calendar field constant. |
---|
DateFormat.Field
corresponding to
calendarField
.IllegalArgumentException | if calendarField is negative or greater than the
field count of Calendar .
|
---|