Uses of Interface
org.threeten.bp.temporal.TemporalField
Packages that use TemporalField
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units.
-
Uses of TemporalField in org.threeten.bp
Methods in org.threeten.bp with parameters of type TemporalFieldModifier and TypeMethodDescriptionintDayOfWeek.get(TemporalField field) Gets the value of the specified field from this day-of-week as anint.intInstant.get(TemporalField field) Gets the value of the specified field from this instant as anint.intLocalDate.get(TemporalField field) Gets the value of the specified field from this date as anint.intLocalDateTime.get(TemporalField field) Gets the value of the specified field from this date-time as anint.intLocalTime.get(TemporalField field) Gets the value of the specified field from this time as anint.intMonth.get(TemporalField field) Gets the value of the specified field from this month-of-year as anint.intMonthDay.get(TemporalField field) Gets the value of the specified field from this month-day as anint.intOffsetDateTime.get(TemporalField field) Gets the value of the specified field from this date-time as anint.intOffsetTime.get(TemporalField field) Gets the value of the specified field from this time as anint.intYear.get(TemporalField field) Gets the value of the specified field from this year as anint.intYearMonth.get(TemporalField field) Gets the value of the specified field from this year-month as anint.intZonedDateTime.get(TemporalField field) Gets the value of the specified field from this date-time as anint.intZoneOffset.get(TemporalField field) Gets the value of the specified field from this offset as anint.longDayOfWeek.getLong(TemporalField field) Gets the value of the specified field from this day-of-week as along.longInstant.getLong(TemporalField field) Gets the value of the specified field from this instant as along.longLocalDate.getLong(TemporalField field) Gets the value of the specified field from this date as along.longLocalDateTime.getLong(TemporalField field) Gets the value of the specified field from this date-time as along.longLocalTime.getLong(TemporalField field) Gets the value of the specified field from this time as along.longMonth.getLong(TemporalField field) Gets the value of the specified field from this month-of-year as along.longMonthDay.getLong(TemporalField field) Gets the value of the specified field from this month-day as along.longOffsetDateTime.getLong(TemporalField field) Gets the value of the specified field from this date-time as along.longOffsetTime.getLong(TemporalField field) Gets the value of the specified field from this time as along.longYear.getLong(TemporalField field) Gets the value of the specified field from this year as along.longYearMonth.getLong(TemporalField field) Gets the value of the specified field from this year-month as along.longZonedDateTime.getLong(TemporalField field) Gets the value of the specified field from this date-time as along.longZoneOffset.getLong(TemporalField field) Gets the value of the specified field from this offset as along.booleanDayOfWeek.isSupported(TemporalField field) Checks if the specified field is supported.booleanInstant.isSupported(TemporalField field) Checks if the specified field is supported.booleanLocalDate.isSupported(TemporalField field) Checks if the specified field is supported.booleanLocalDateTime.isSupported(TemporalField field) Checks if the specified field is supported.booleanLocalTime.isSupported(TemporalField field) Checks if the specified field is supported.booleanMonth.isSupported(TemporalField field) Checks if the specified field is supported.booleanMonthDay.isSupported(TemporalField field) Checks if the specified field is supported.booleanOffsetDateTime.isSupported(TemporalField field) Checks if the specified field is supported.booleanOffsetTime.isSupported(TemporalField field) Checks if the specified field is supported.booleanYear.isSupported(TemporalField field) Checks if the specified field is supported.booleanYearMonth.isSupported(TemporalField field) Checks if the specified field is supported.booleanZonedDateTime.isSupported(TemporalField field) Checks if the specified field is supported.booleanZoneOffset.isSupported(TemporalField field) Checks if the specified field is supported.DayOfWeek.range(TemporalField field) Gets the range of valid values for the specified field.Instant.range(TemporalField field) Gets the range of valid values for the specified field.LocalDate.range(TemporalField field) Gets the range of valid values for the specified field.LocalDateTime.range(TemporalField field) Gets the range of valid values for the specified field.LocalTime.range(TemporalField field) Gets the range of valid values for the specified field.Month.range(TemporalField field) Gets the range of valid values for the specified field.MonthDay.range(TemporalField field) Gets the range of valid values for the specified field.OffsetDateTime.range(TemporalField field) Gets the range of valid values for the specified field.OffsetTime.range(TemporalField field) Gets the range of valid values for the specified field.Year.range(TemporalField field) Gets the range of valid values for the specified field.YearMonth.range(TemporalField field) Gets the range of valid values for the specified field.ZonedDateTime.range(TemporalField field) Gets the range of valid values for the specified field.ZoneOffset.range(TemporalField field) Gets the range of valid values for the specified field.Instant.with(TemporalField field, long newValue) Returns a copy of this instant with the specified field set to a new value.LocalDate.with(TemporalField field, long newValue) Returns a copy of this date with the specified field set to a new value.LocalDateTime.with(TemporalField field, long newValue) Returns a copy of this date-time with the specified field set to a new value.LocalTime.with(TemporalField field, long newValue) Returns a copy of this time with the specified field set to a new value.OffsetDateTime.with(TemporalField field, long newValue) Returns a copy of this date-time with the specified field set to a new value.OffsetTime.with(TemporalField field, long newValue) Returns a copy of this time with the specified field set to a new value.Year.with(TemporalField field, long newValue) Returns a copy of this year with the specified field set to a new value.YearMonth.with(TemporalField field, long newValue) Returns a copy of this year-month with the specified field set to a new value.ZonedDateTime.with(TemporalField field, long newValue) Returns a copy of this date-time with the specified field set to a new value. -
Uses of TemporalField in org.threeten.bp.chrono
Methods in org.threeten.bp.chrono with parameters of type TemporalFieldModifier and TypeMethodDescriptionintChronoZonedDateTime.get(TemporalField field) default intEra.get(TemporalField field) intHijrahEra.get(TemporalField field) intIsoEra.get(TemporalField field) intMinguoEra.get(TemporalField field) intThaiBuddhistEra.get(TemporalField field) longChronoZonedDateTime.getLong(TemporalField field) default longEra.getLong(TemporalField field) longHijrahDate.getLong(TemporalField field) longHijrahEra.getLong(TemporalField field) longIsoEra.getLong(TemporalField field) longJapaneseDate.getLong(TemporalField field) longMinguoDate.getLong(TemporalField field) longMinguoEra.getLong(TemporalField field) longThaiBuddhistDate.getLong(TemporalField field) longThaiBuddhistEra.getLong(TemporalField field) booleanChronoLocalDate.isSupported(TemporalField field) default booleanEra.isSupported(TemporalField field) booleanHijrahEra.isSupported(TemporalField field) booleanIsoEra.isSupported(TemporalField field) booleanJapaneseDate.isSupported(TemporalField field) Checks if the specified field is supported.booleanMinguoEra.isSupported(TemporalField field) booleanThaiBuddhistEra.isSupported(TemporalField field) ChronoZonedDateTime.range(TemporalField field) HijrahDate.range(TemporalField field) HijrahEra.range(TemporalField field) IsoEra.range(TemporalField field) JapaneseDate.range(TemporalField field) JapaneseEra.range(TemporalField field) MinguoDate.range(TemporalField field) MinguoEra.range(TemporalField field) ThaiBuddhistDate.range(TemporalField field) ThaiBuddhistEra.range(TemporalField field) abstract ChronoLocalDateChronoLocalDate.with(TemporalField field, long newValue) abstract ChronoLocalDateTime<D>ChronoLocalDateTime.with(TemporalField field, long newValue) abstract ChronoZonedDateTime<D>ChronoZonedDateTime.with(TemporalField field, long newValue) HijrahDate.with(TemporalField field, long newValue) JapaneseDate.with(TemporalField field, long newValue) MinguoDate.with(TemporalField field, long newValue) ThaiBuddhistDate.with(TemporalField field, long newValue) Method parameters in org.threeten.bp.chrono with type arguments of type TemporalFieldModifier and TypeMethodDescriptionabstract ChronoLocalDateChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) Resolves parsedChronoFieldvalues into a date during parsing.HijrahChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) IsoChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) JapaneseChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) MinguoChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) ThaiBuddhistChronology.resolveDate(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle) -
Uses of TemporalField in org.threeten.bp.format
Methods in org.threeten.bp.format that return types with arguments of type TemporalFieldModifier and TypeMethodDescriptionDateTimeFormatter.getResolverFields()Gets the resolver fields to use during parsing.Methods in org.threeten.bp.format with parameters of type TemporalFieldModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendFraction(TemporalField field, int minWidth, int maxWidth, boolean decimalPoint) Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilder.appendText(TemporalField field) Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilder.appendText(TemporalField field, Map<Long, String> textLookup) Appends the text of a date-time field to the formatter using the specified map to supply the text.DateTimeFormatterBuilder.appendText(TemporalField field, TextStyle textStyle) Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder.appendValue(TemporalField field) Appends the value of a date-time field to the formatter using a normal output style.DateTimeFormatterBuilder.appendValue(TemporalField field, int width) Appends the value of a date-time field to the formatter using a fixed width, zero-padded approach.DateTimeFormatterBuilder.appendValue(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) Appends the value of a date-time field to the formatter providing full control over printing.DateTimeFormatterBuilder.appendValueReduced(TemporalField field, int width, int maxWidth, int baseValue) Appends the reduced value of a date-time field to the formatter.DateTimeFormatterBuilder.appendValueReduced(TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate) Appends the reduced value of a date-time field to the formatter.longDateTimeBuilder.getLong(TemporalField field) abstract StringDateTimeTextProvider.getText(TemporalField field, long value, TextStyle style, Locale locale) Gets the text for the specified field, locale and style for the purpose of printing.DateTimeTextProvider.getTextIterator(TemporalField field, TextStyle style, Locale locale) Gets an iterator of text to field for the specified field, locale and style for the purpose of parsing.booleanDateTimeBuilder.isSupported(TemporalField field) DateTimeFormatterBuilder.parseDefaulting(TemporalField field, long value) Appends a default value for a field to the formatter for use in parsing.DateTimeFormatter.withResolverFields(TemporalField... resolverFields) Returns a copy of this formatter with a new set of resolver fields.Method parameters in org.threeten.bp.format with type arguments of type TemporalFieldModifier and TypeMethodDescriptionDateTimeBuilder.resolve(ResolverStyle resolverStyle, Set<TemporalField> resolverFields) Resolves the builder, evaluating the date and time.DateTimeFormatter.withResolverFields(Set<TemporalField> resolverFields) Returns a copy of this formatter with a new set of resolver fields.Constructors in org.threeten.bp.format with parameters of type TemporalFieldModifierConstructorDescriptionDateTimeBuilder(TemporalField field, long value) Creates a new instance of the builder with a single field-value. -
Uses of TemporalField in org.threeten.bp.temporal
Classes in org.threeten.bp.temporal that implement TemporalFieldFields in org.threeten.bp.temporal declared as TemporalFieldModifier and TypeFieldDescriptionstatic final TemporalFieldIsoFields.DAY_OF_QUARTERThe field that represents the day-of-quarter.static final TemporalFieldJulianFields.JULIAN_DAYJulian Day field.static final TemporalFieldJulianFields.MODIFIED_JULIAN_DAYModified Julian Day field.static final TemporalFieldIsoFields.QUARTER_OF_YEARThe field that represents the quarter-of-year.static final TemporalFieldJulianFields.RATA_DIERata Die field.static final TemporalFieldIsoFields.WEEK_BASED_YEARThe field that represents the week-based-year.static final TemporalFieldIsoFields.WEEK_OF_WEEK_BASED_YEARThe field that represents the week-of-week-based-year.Methods in org.threeten.bp.temporal that return TemporalFieldModifier and TypeMethodDescriptionWeekFields.dayOfWeek()Returns a field to access the day of week based on thisWeekFields.WeekFields.weekBasedYear()Returns a field to access the year of a week-based-year based on thisWeekFields.WeekFields.weekOfMonth()Returns a field to access the week of month based on thisWeekFields.WeekFields.weekOfWeekBasedYear()Returns a field to access the week of a week-based-year based on thisWeekFields.WeekFields.weekOfYear()Returns a field to access the week of year based on thisWeekFields.Methods in org.threeten.bp.temporal with parameters of type TemporalFieldModifier and TypeMethodDescriptionintValueRange.checkValidIntValue(long value, TemporalField field) Checks that the specified value is valid and fits in anint.longValueRange.checkValidValue(long value, TemporalField field) Checks that the specified value is valid.default intTemporalAccessor.get(TemporalField field) Gets the value of the specified field as anint.longTemporalAccessor.getLong(TemporalField field) Gets the value of the specified field as along.booleanTemporalAccessor.isSupported(TemporalField field) Checks if the specified field is supported.default ValueRangeTemporalAccessor.range(TemporalField field) Gets the range of valid values for the specified field.Temporal.with(TemporalField field, long newValue) Returns an object of the same type as this object with the specified field altered.Method parameters in org.threeten.bp.temporal with type arguments of type TemporalFieldModifier and TypeMethodDescriptionChronoField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) TemporalField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) Resolves the date/time information in the builder