Uses of Class
javax.time.calendar.DateTimeFieldRule
-
Packages that use DateTimeFieldRule Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations.javax.time.calendar.format Provides classes to format dates and times as strings.javax.time.i18n Provides classes representing dates and times in alternate calendar systems. -
-
Uses of DateTimeFieldRule in javax.time.calendar
Subclasses of DateTimeFieldRule in javax.time.calendar Modifier and Type Class Description (package private) static class
ISOChronology.AmPmOfDayRule
Rule implementation.(package private) static class
ISOChronology.DayOfWeekRule
Rule implementation.(package private) static class
ISOChronology.MonthOfYearRule
Rule implementation.(package private) static class
ISOChronology.QuarterOfYearRule
Rule implementation.(package private) static class
ISOChronology.Rule
Single rule subclass, which means fewer classes to load at startup.Fields in javax.time.calendar declared as DateTimeFieldRule Modifier and Type Field Description (package private) static DateTimeFieldRule<AmPmOfDay>
ISOChronology.AmPmOfDayRule. INSTANCE
Singleton instance.(package private) static DateTimeFieldRule<DayOfWeek>
ISOChronology.DayOfWeekRule. INSTANCE
Singleton instance.(package private) static DateTimeFieldRule<MonthOfYear>
ISOChronology.MonthOfYearRule. INSTANCE
Singleton instance.(package private) static DateTimeFieldRule<QuarterOfYear>
ISOChronology.QuarterOfYearRule. INSTANCE
Singleton instance.Fields in javax.time.calendar with type parameters of type DateTimeFieldRule Modifier and Type Field Description private java.util.TreeMap<DateTimeFieldRule<?>,java.lang.Integer>
DateTimeFields. fieldValueMap
The date time map, never null, may be empty.Methods in javax.time.calendar that return DateTimeFieldRule Modifier and Type Method Description static DateTimeFieldRule<AmPmOfDay>
ISOChronology. amPmOfDayRule()
Gets the rule for the AM/PM of day field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. clockHourOfAmPmRule()
Gets the rule for the clock hour of AM/PM field from 1 to 12.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. clockHourOfDayRule()
Gets the rule for the clock hour of AM/PM field from 1 to 24.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. dayOfMonthRule()
Gets the rule for the day-of-month field in the ISO chronology.static DateTimeFieldRule<DayOfWeek>
ISOChronology. dayOfWeekRule()
Gets the rule for the day-of-week field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. dayOfYearRule()
Gets the rule for the day-of-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. hourOfAmPmRule()
Gets the rule for the hour of AM/PM field from 0 to 11.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. hourOfDayRule()
Gets the rule for the hour-of-day field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. milliOfDayRule()
Gets the rule for the milli-of-day field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. milliOfSecondRule()
Gets the rule for the milli-of-second field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. minuteOfHourRule()
Gets the rule for the minute-of-hour field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. monthOfQuarterRule()
Gets the rule for the month-of-quarter field in the ISO chronology.static DateTimeFieldRule<MonthOfYear>
ISOChronology. monthOfYearRule()
Gets the rule for the month-of-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. nanoOfSecondRule()
Gets the rule for the nano-of-second field.static DateTimeFieldRule<QuarterOfYear>
ISOChronology. quarterOfYearRule()
Gets the rule for the quarter-of-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
Year. rule()
Gets the rule that defines how the year field operates.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. secondOfDayRule()
Gets the rule for the second-of-day field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. secondOfMinuteRule()
Gets the rule for the second-of-minute field.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. weekBasedYearRule()
Gets the rule for the week-based-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. weekOfMonthRule()
Gets the rule for the week-of-month field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. weekOfWeekBasedYearRule()
Gets the rule for the week-of-week-based-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. weekOfYearRule()
Gets the rule for the week-of-year field in the ISO chronology.static DateTimeFieldRule<java.lang.Integer>
ISOChronology. yearRule()
Gets the rule for the year field in the ISO chronology.Methods in javax.time.calendar that return types with arguments of type DateTimeFieldRule Modifier and Type Method Description private java.util.TreeMap<DateTimeFieldRule<?>,java.lang.Integer>
DateTimeFields. clonedMap()
Clones the field-value map.private static java.util.TreeMap<DateTimeFieldRule<?>,java.lang.Integer>
DateTimeFields. createMap()
Creates a new empty map.java.util.Iterator<DateTimeFieldRule<?>>
DateTimeFields. iterator()
Iterates through all the field rules.java.util.SortedMap<DateTimeFieldRule<?>,java.lang.Integer>
DateTimeFields. toFieldValueMap()
Converts this object to a map of fields to values.Methods in javax.time.calendar with parameters of type DateTimeFieldRule Modifier and Type Method Description boolean
DateTimeFields. contains(DateTimeFieldRule<?> fieldRule)
Checks if this object contains a mapping for the specified field.int
DateTimeFields. getInt(DateTimeFieldRule<?> rule)
Gets the value for the specified field throwing an exception if the field is not in the field-value map.java.lang.Integer
DateTimeFields. getQuiet(DateTimeFieldRule<?> fieldRule)
Gets the value for the specified field quietly returning null if the field is not in the field-value map.static DateTimeFields
DateTimeFields. of(DateTimeFieldRule<?> fieldRule, int value)
Obtains an instance ofDateTimeFields
from a field-value pair.static DateTimeFields
DateTimeFields. of(DateTimeFieldRule<?> fieldRule1, int value1, DateTimeFieldRule<?> fieldRule2, int value2)
Obtains an instance ofDateTimeFields
from two field-value pairs.DateTimeFields
DateTimeFields. with(DateTimeFieldRule<?> fieldRule, int value)
Returns a copy of this DateTimeFields with the specified field value.DateTimeFields
DateTimeFields. withFieldRemoved(DateTimeFieldRule<?> fieldRule)
Returns a copy of this object with the specified field removed.Method parameters in javax.time.calendar with type arguments of type DateTimeFieldRule Modifier and Type Method Description static DateTimeFields
DateTimeFields. of(java.util.Map<DateTimeFieldRule<?>,java.lang.Integer> fieldValueMap)
Obtains an instance ofDateTimeFields
from a map of field-value pairs.Constructors in javax.time.calendar with parameters of type DateTimeFieldRule Constructor Description IllegalCalendarFieldValueException(java.lang.String message, DateTimeFieldRule<?> fieldRule)
Constructs a new illegal field value exception with the specified message.IllegalCalendarFieldValueException(DateTimeFieldRule<?> fieldRule, long actual, int minValue, int maxValue)
Constructs a new illegal field value exception with a standard message.Constructor parameters in javax.time.calendar with type arguments of type DateTimeFieldRule Constructor Description DateTimeFields(java.util.TreeMap<DateTimeFieldRule<?>,java.lang.Integer> assignedMap)
Constructor. -
Uses of DateTimeFieldRule in javax.time.calendar.format
Fields in javax.time.calendar.format declared as DateTimeFieldRule Modifier and Type Field Description private DateTimeFieldRule<?>
FractionPrinterParser. rule
The rule to output, not null.(package private) DateTimeFieldRule<?>
NumberPrinterParser. rule
The rule to output, not null.private DateTimeFieldRule<?>
TextPrinterParser. rule
The rule to output, not null.Fields in javax.time.calendar.format with type parameters of type DateTimeFieldRule Modifier and Type Field Description private static java.util.Map<java.lang.Character,DateTimeFieldRule<?>>
DateTimeFormatterBuilder. RULE_MAP
Map of letters to rules.Methods in javax.time.calendar.format with parameters of type DateTimeFieldRule Modifier and Type Method Description DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendFraction(DateTimeFieldRule<?> rule, int minWidth, int maxWidth)
Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendText(DateTimeFieldRule<?> rule)
Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendText(DateTimeFieldRule<?> rule, DateTimeFormatterBuilder.TextStyle textStyle)
Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValue(DateTimeFieldRule<?> rule)
Appends the value of a date-time field to the formatter using a normal output style.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValue(DateTimeFieldRule<?> rule, int width)
Appends the value of a date-time field to the formatter using a fixed width, zero-padded approach.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValue(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle)
Appends the value of a date-time field to the formatter providing full control over printing.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValueReduced(DateTimeFieldRule<?> rule, int width, int baseValue)
Appends the reduced value of a date-time field to the formatter.private void
DateTimeFormatterBuilder. parseRule(char cur, int count, DateTimeFieldRule<?> rule, int fraction)
void
DateTimeParseContext. setParsed(DateTimeFieldRule<?> rule, int value)
Sets the parsed value associated with the specified rule.Constructors in javax.time.calendar.format with parameters of type DateTimeFieldRule Constructor Description CalendricalPrintFieldException(java.lang.String msg, DateTimeFieldRule<?> fieldRule, int value)
Constructs a new exception using the specified message.CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule, int value)
Constructs a new exception creating a standard error message for unable to print a negative value.CalendricalPrintFieldException(DateTimeFieldRule<?> fieldRule, int value, int maxWidth)
Constructs a new exception creating a standard error message for exceeding padding width.FractionPrinterParser(DateTimeFieldRule<?> rule, int minWidth, int maxWidth)
Constructor.NumberPrinterParser(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle)
Constructor.NumberPrinterParser(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle, int subsequentWidth)
Constructor.ReducedPrinterParser(DateTimeFieldRule<?> rule, int width, int baseValue)
Constructor.TextPrinterParser(DateTimeFieldRule<?> rule, DateTimeFormatterBuilder.TextStyle textStyle)
Constructor. -
Uses of DateTimeFieldRule in javax.time.i18n
Subclasses of DateTimeFieldRule in javax.time.i18n Modifier and Type Class Description private static class
CopticChronology.DayOfMonthRule
Rule implementation.private static class
CopticChronology.DayOfWeekRule
Rule implementation.private static class
CopticChronology.DayOfYearRule
Rule implementation.private static class
CopticChronology.MonthOfYearRule
Rule implementation.private static class
CopticChronology.YearRule
Rule implementation.private static class
HistoricChronology.DayOfMonthRule
Rule implementation.private static class
HistoricChronology.DayOfWeekRule
Rule implementation.private static class
HistoricChronology.DayOfYearRule
Rule implementation.private static class
HistoricChronology.EraRule
Rule implementation.private static class
HistoricChronology.MonthOfYearRule
Rule implementation.private static class
HistoricChronology.YearRule
Rule implementation.Fields in javax.time.i18n declared as DateTimeFieldRule Modifier and Type Field Description private static DateTimeFieldRule<java.lang.Integer>
CopticChronology.DayOfMonthRule. INSTANCE
Singleton instance.private static DateTimeFieldRule<DayOfWeek>
CopticChronology.DayOfWeekRule. INSTANCE
Singleton instance.private static DateTimeFieldRule<java.lang.Integer>
CopticChronology.DayOfYearRule. INSTANCE
Singleton instance.private static DateTimeFieldRule<java.lang.Integer>
CopticChronology.MonthOfYearRule. INSTANCE
Singleton instance.private static DateTimeFieldRule<java.lang.Integer>
CopticChronology.YearRule. INSTANCE
Singleton instance.Methods in javax.time.i18n that return DateTimeFieldRule Modifier and Type Method Description static DateTimeFieldRule<java.lang.Integer>
CopticChronology. dayOfMonthRule()
Gets the rule for the day-of-month field in the Coptic chronology.DateTimeFieldRule<java.lang.Integer>
HistoricChronology. dayOfMonthRule()
Gets the rule for the day-of-month field in the Historic chronology.static DateTimeFieldRule<DayOfWeek>
CopticChronology. dayOfWeekRule()
Gets the rule for the day-of-week field in the Coptic chronology.DateTimeFieldRule<DayOfWeek>
HistoricChronology. dayOfWeekRule()
Gets the rule for the day-of-week field in the Historic chronology.static DateTimeFieldRule<java.lang.Integer>
CopticChronology. dayOfYearRule()
Gets the rule for the day-of-year field in the Coptic chronology.DateTimeFieldRule<java.lang.Integer>
HistoricChronology. dayOfYearRule()
Gets the rule for the day-of-year field in the Historic chronology.DateTimeFieldRule<HistoricEra>
HistoricChronology. eraRule()
Gets the rule for the year field in the Historic chronology.static DateTimeFieldRule<java.lang.Integer>
CopticChronology. monthOfYearRule()
Gets the rule for the month-of-year field in the Coptic chronology.DateTimeFieldRule<MonthOfYear>
HistoricChronology. monthOfYearRule()
Gets the rule for the month-of-year field in the Historic chronology.DateTimeFieldRule<java.lang.Integer>
HistoricChronology. yearOfEraRule()
Gets the rule for the year field in the Historic chronology.static DateTimeFieldRule<java.lang.Integer>
CopticChronology. yearRule()
Gets the rule for the year field in the Coptic chronology.DateTimeFieldRule<java.lang.Integer>
HistoricChronology. yearRule()
Gets the rule for the year field in the Historic chronology.
-