Uses of Class
javax.time.calendar.DateTimeFieldRule
Packages that use DateTimeFieldRule
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes to format dates and times as strings.
Provides classes representing dates and times in alternate calendar systems.
-
Uses of DateTimeFieldRule in javax.time.calendar
Subclasses of DateTimeFieldRule in javax.time.calendarModifier and TypeClassDescription(package private) static final class
Rule implementation.(package private) static final class
Rule implementation.(package private) static final class
Rule implementation.(package private) static final class
Rule implementation.(package private) static final class
Single rule subclass, which means fewer classes to load at startup.Fields in javax.time.calendar declared as DateTimeFieldRuleModifier and TypeFieldDescription(package private) static final DateTimeFieldRule
<AmPmOfDay> ISOChronology.AmPmOfDayRule.INSTANCE
Singleton instance.(package private) static final DateTimeFieldRule
<DayOfWeek> ISOChronology.DayOfWeekRule.INSTANCE
Singleton instance.(package private) static final DateTimeFieldRule
<MonthOfYear> ISOChronology.MonthOfYearRule.INSTANCE
Singleton instance.(package private) static final DateTimeFieldRule
<QuarterOfYear> ISOChronology.QuarterOfYearRule.INSTANCE
Singleton instance.Fields in javax.time.calendar with type parameters of type DateTimeFieldRuleModifier and TypeFieldDescriptionprivate final TreeMap
<DateTimeFieldRule<?>, Integer> DateTimeFields.fieldValueMap
The date time map, never null, may be empty.Methods in javax.time.calendar that return DateTimeFieldRuleModifier and TypeMethodDescriptionstatic DateTimeFieldRule
<AmPmOfDay> ISOChronology.amPmOfDayRule()
Gets the rule for the AM/PM of day field.static DateTimeFieldRule
<Integer> ISOChronology.clockHourOfAmPmRule()
Gets the rule for the clock hour of AM/PM field from 1 to 12.static DateTimeFieldRule
<Integer> ISOChronology.clockHourOfDayRule()
Gets the rule for the clock hour of AM/PM field from 1 to 24.static DateTimeFieldRule
<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
<Integer> ISOChronology.dayOfYearRule()
Gets the rule for the day-of-year field in the ISO chronology.static DateTimeFieldRule
<Integer> ISOChronology.hourOfAmPmRule()
Gets the rule for the hour of AM/PM field from 0 to 11.static DateTimeFieldRule
<Integer> ISOChronology.hourOfDayRule()
Gets the rule for the hour-of-day field.static DateTimeFieldRule
<Integer> ISOChronology.milliOfDayRule()
Gets the rule for the milli-of-day field.static DateTimeFieldRule
<Integer> ISOChronology.milliOfSecondRule()
Gets the rule for the milli-of-second field.static DateTimeFieldRule
<Integer> ISOChronology.minuteOfHourRule()
Gets the rule for the minute-of-hour field.static DateTimeFieldRule
<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
<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
<Integer> Year.rule()
Gets the rule that defines how the year field operates.static DateTimeFieldRule
<Integer> ISOChronology.secondOfDayRule()
Gets the rule for the second-of-day field.static DateTimeFieldRule
<Integer> ISOChronology.secondOfMinuteRule()
Gets the rule for the second-of-minute field.static DateTimeFieldRule
<Integer> ISOChronology.weekBasedYearRule()
Gets the rule for the week-based-year field in the ISO chronology.static DateTimeFieldRule
<Integer> ISOChronology.weekOfMonthRule()
Gets the rule for the week-of-month field in the ISO chronology.static DateTimeFieldRule
<Integer> ISOChronology.weekOfWeekBasedYearRule()
Gets the rule for the week-of-week-based-year field in the ISO chronology.static DateTimeFieldRule
<Integer> ISOChronology.weekOfYearRule()
Gets the rule for the week-of-year field in the ISO chronology.static DateTimeFieldRule
<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 DateTimeFieldRuleModifier and TypeMethodDescriptionprivate TreeMap
<DateTimeFieldRule<?>, Integer> DateTimeFields.clonedMap()
Clones the field-value map.private static TreeMap
<DateTimeFieldRule<?>, Integer> DateTimeFields.createMap()
Creates a new empty map.DateTimeFields.iterator()
Iterates through all the field rules.DateTimeFields.toFieldValueMap()
Converts this object to a map of fields to values.Methods in javax.time.calendar with parameters of type DateTimeFieldRuleModifier and TypeMethodDescriptionboolean
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.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.with
(DateTimeFieldRule<?> fieldRule, int value) Returns a copy of this DateTimeFields with the specified field value.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 DateTimeFieldRuleModifier and TypeMethodDescriptionstatic DateTimeFields
DateTimeFields.of
(Map<DateTimeFieldRule<?>, Integer> fieldValueMap) Obtains an instance ofDateTimeFields
from a map of field-value pairs.Constructors in javax.time.calendar with parameters of type DateTimeFieldRuleModifierConstructorDescriptionIllegalCalendarFieldValueException
(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 DateTimeFieldRuleModifierConstructorDescriptionprivate
DateTimeFields
(TreeMap<DateTimeFieldRule<?>, Integer> assignedMap) Constructor. -
Uses of DateTimeFieldRule in javax.time.calendar.format
Fields in javax.time.calendar.format declared as DateTimeFieldRuleModifier and TypeFieldDescriptionprivate final DateTimeFieldRule
<?> FractionPrinterParser.rule
The rule to output, not null.(package private) final DateTimeFieldRule
<?> NumberPrinterParser.rule
The rule to output, not null.private final DateTimeFieldRule
<?> TextPrinterParser.rule
The rule to output, not null.Fields in javax.time.calendar.format with type parameters of type DateTimeFieldRuleModifier and TypeFieldDescriptionprivate static final Map
<Character, DateTimeFieldRule<?>> DateTimeFormatterBuilder.RULE_MAP
Map of letters to rules.Methods in javax.time.calendar.format with parameters of type DateTimeFieldRuleModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendFraction
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth) Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilder.appendText
(DateTimeFieldRule<?> rule) Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilder.appendText
(DateTimeFieldRule<?> rule, DateTimeFormatterBuilder.TextStyle textStyle) Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder.appendValue
(DateTimeFieldRule<?> rule) Appends the value of a date-time field to the formatter using a normal output style.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.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.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 DateTimeFieldRuleModifierConstructorDescriptionCalendricalPrintFieldException
(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.(package private)
FractionPrinterParser
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth) Constructor.(package private)
NumberPrinterParser
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle) Constructor.private
NumberPrinterParser
(DateTimeFieldRule<?> rule, int minWidth, int maxWidth, DateTimeFormatterBuilder.SignStyle signStyle, int subsequentWidth) Constructor.(package private)
ReducedPrinterParser
(DateTimeFieldRule<?> rule, int width, int baseValue) Constructor.(package private)
TextPrinterParser
(DateTimeFieldRule<?> rule, DateTimeFormatterBuilder.TextStyle textStyle) Constructor. -
Uses of DateTimeFieldRule in javax.time.i18n
Subclasses of DateTimeFieldRule in javax.time.i18nModifier and TypeClassDescriptionprivate static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.private static final class
Rule implementation.Fields in javax.time.i18n declared as DateTimeFieldRuleModifier and TypeFieldDescriptionprivate static final DateTimeFieldRule
<Integer> CopticChronology.DayOfMonthRule.INSTANCE
Singleton instance.private static final DateTimeFieldRule
<DayOfWeek> CopticChronology.DayOfWeekRule.INSTANCE
Singleton instance.private static final DateTimeFieldRule
<Integer> CopticChronology.DayOfYearRule.INSTANCE
Singleton instance.private static final DateTimeFieldRule
<Integer> CopticChronology.MonthOfYearRule.INSTANCE
Singleton instance.private static final DateTimeFieldRule
<Integer> CopticChronology.YearRule.INSTANCE
Singleton instance.Methods in javax.time.i18n that return DateTimeFieldRuleModifier and TypeMethodDescriptionstatic DateTimeFieldRule
<Integer> CopticChronology.dayOfMonthRule()
Gets the rule for the day-of-month field in the Coptic chronology.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.HistoricChronology.dayOfWeekRule()
Gets the rule for the day-of-week field in the Historic chronology.static DateTimeFieldRule
<Integer> CopticChronology.dayOfYearRule()
Gets the rule for the day-of-year field in the Coptic chronology.HistoricChronology.dayOfYearRule()
Gets the rule for the day-of-year field in the Historic chronology.HistoricChronology.eraRule()
Gets the rule for the year field in the Historic chronology.static DateTimeFieldRule
<Integer> CopticChronology.monthOfYearRule()
Gets the rule for the month-of-year field in the Coptic chronology.HistoricChronology.monthOfYearRule()
Gets the rule for the month-of-year field in the Historic chronology.HistoricChronology.yearOfEraRule()
Gets the rule for the year field in the Historic chronology.static DateTimeFieldRule
<Integer> CopticChronology.yearRule()
Gets the rule for the year field in the Coptic chronology.HistoricChronology.yearRule()
Gets the rule for the year field in the Historic chronology.