API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.text. DateFormat.Field View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      AttributedCharacterIterator.Attribute
          Format.Field
              DateFormat.Field
Implements
Subclasses
Description
publicstatic class DateFormat.Field
  Defines constants that are used as attribute keys in the AttributedCharacterIterator returned from DateFormat.formatToCharacterIterator and as field identifiers in FieldPosition.
See also:    Calendar
Constructors
protected DateFormat.Field (String name, int calendarField)
  Creates a Field.
Methods
Hide/Show inherited methods
publicfinal boolean equals (Object obj) [Inherited From AttributedCharacterIterator.Attribute]
  Compares two objects for equality.
public int getCalendarField ()
  Returns the Calendar field associated with this attribute.
protected String getName () [Inherited From AttributedCharacterIterator.Attribute]
Returns the name of the attribute.
publicfinal int hashCode () [Inherited From AttributedCharacterIterator.Attribute]
  Returns a hash code value for the object.
publicstatic Field ofCalendarField (int calendarField)
  Returns the Field constant that corresponds to the Calendar constant calendarField.
protected Object readResolve () throws InvalidObjectException [Overrides AttributedCharacterIterator.Attribute]
  Resolves instances being deserialized to the predefined constants.
public String toString () [Inherited From AttributedCharacterIterator.Attribute]
  Returns a string representation of the object.
Fields
Hide/Show inherited fields
publicfinalstatic Field AM_PM
  Constant identifying the time of day indicator (e.g.
publicfinalstatic Field DAY_OF_MONTH
Constant identifying the day of month field.
publicfinalstatic Field DAY_OF_WEEK
Constant identifying the day of week field.
publicfinalstatic Field DAY_OF_WEEK_IN_MONTH
Constant identifying the day of week field.
publicfinalstatic Field DAY_OF_YEAR
Constant identifying the day of year field.
publicfinalstatic Field ERA
Constant identifying the era field.
publicfinalstatic Field HOUR_OF_DAY0
Constant identifying the hour of day field, where the legal values are 0 to 23.
publicfinalstatic Field HOUR_OF_DAY1
Constant identifying the hour of day field, where the legal values are 1 to 24.
publicfinalstatic Field HOUR0
Constant identifying the hour field, where the legal values are 0 to 11.
publicfinalstatic Field HOUR1
Constant identifying the hour field, where the legal values are 1 to 12.
publicfinalstatic Attribute INPUT_METHOD_SEGMENT [Inherited From AttributedCharacterIterator.Attribute]
  Attribute key for input method segments.
publicfinalstatic Attribute LANGUAGE [Inherited From AttributedCharacterIterator.Attribute]
  Attribute key for the language of some text.
publicfinalstatic Field MILLISECOND
Constant identifying the millisecond field.
publicfinalstatic Field MINUTE
Constant identifying the minute field.
publicfinalstatic Field MONTH
Constant identifying the month field.
publicfinalstatic Attribute READING [Inherited From AttributedCharacterIterator.Attribute]
  Attribute key for the reading of some text.
publicfinalstatic Field SECOND
Constant identifying the second field.
publicfinalstatic Field TIME_ZONE
Constant identifying the time zone field.
publicfinalstatic Field WEEK_OF_MONTH
Constant identifying the week of month field.
publicfinalstatic Field WEEK_OF_YEAR
Constant identifying the week of year field.
publicfinalstatic Field YEAR
Constant identifying the year field.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar