Uses of Interface
java.time.temporal.TemporalField
-
Packages that use TemporalField Package Description java.time The main API for dates, times, instants, and durations.java.time.chrono Generic API for calendar systems other than the default ISO.java.time.format Provides classes to print and parse dates and times.java.time.temporal Access to date and time using fields and units, and date time adjusters. -
-
Uses of TemporalField in java.time
Methods in java.time with parameters of type TemporalField Modifier and Type Method Description intDayOfWeek. 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.ValueRangeDayOfWeek. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeInstant. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeLocalDate. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeLocalDateTime. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeLocalTime. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeMonth. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeMonthDay. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeOffsetDateTime. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeOffsetTime. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeYear. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeYearMonth. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeZonedDateTime. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeZoneOffset. range(TemporalField field)Gets the range of valid values for the specified field.InstantInstant. with(TemporalField field, long newValue)Returns a copy of this instant with the specified field set to a new value.LocalDateLocalDate. with(TemporalField field, long newValue)Returns a copy of this date with the specified field set to a new value.LocalDateTimeLocalDateTime. with(TemporalField field, long newValue)Returns a copy of this date-time with the specified field set to a new value.LocalTimeLocalTime. with(TemporalField field, long newValue)Returns a copy of this time with the specified field set to a new value.OffsetDateTimeOffsetDateTime. with(TemporalField field, long newValue)Returns a copy of this date-time with the specified field set to a new value.OffsetTimeOffsetTime. with(TemporalField field, long newValue)Returns a copy of this time with the specified field set to a new value.YearYear. with(TemporalField field, long newValue)Returns a copy of this year with the specified field set to a new value.YearMonthYearMonth. with(TemporalField field, long newValue)Returns a copy of this year-month with the specified field set to a new value.ZonedDateTimeZonedDateTime. 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 java.time.chrono
Methods in java.time.chrono with parameters of type TemporalField Modifier and Type Method Description default intEra. get(TemporalField field)Gets the value of the specified field from this era as anint.default longEra. getLong(TemporalField field)Gets the value of the specified field from this era as along.default booleanChronoLocalDate. isSupported(TemporalField field)Checks if the specified field is supported.booleanChronoLocalDateTime. isSupported(TemporalField field)Checks if the specified field is supported.booleanChronoZonedDateTime. isSupported(TemporalField field)Checks if the specified field is supported.default booleanEra. isSupported(TemporalField field)Checks if the specified field is supported.booleanJapaneseDate. isSupported(TemporalField field)Checks if the specified field is supported.default ValueRangeEra. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeHijrahEra. range(TemporalField field)Gets the range of valid values for the specified field.ValueRangeJapaneseEra. range(TemporalField field)Gets the range of valid values for the specified field.default ChronoLocalDateChronoLocalDate. with(TemporalField field, long newValue)Returns an object of the same type as this object with the specified field altered.ChronoLocalDateTime<D>ChronoLocalDateTime. with(TemporalField field, long newValue)Returns an object of the same type as this object with the specified field altered.ChronoZonedDateTime<D>ChronoZonedDateTime. with(TemporalField field, long newValue)Returns an object of the same type as this object with the specified field altered.Method parameters in java.time.chrono with type arguments of type TemporalField Modifier and Type Method Description ChronoLocalDateAbstractChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing.ChronoLocalDateChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing.LocalDateIsoChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)Resolves parsedChronoFieldvalues into a date during parsing. -
Uses of TemporalField in java.time.format
Methods in java.time.format that return types with arguments of type TemporalField Modifier and Type Method Description Set<TemporalField>DateTimeFormatter. getResolverFields()Gets the resolver fields to use during parsing.Methods in java.time.format with parameters of type TemporalField Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendFraction(TemporalField field, int minWidth, int maxWidth, boolean decimalPoint)Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendText(TemporalField field)Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendText(TemporalField field, TextStyle textStyle)Appends the text of a date-time field to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. 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.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendValue(TemporalField field)Appends the value of a date-time field to the formatter using a normal output style.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendValue(TemporalField field, int width)Appends the value of a date-time field to the formatter using a fixed width, zero-padded approach.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendValue(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle)Appends the value of a date-time field to the formatter providing full control over formatting.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendValueReduced(TemporalField field, int width, int maxWidth, int baseValue)Appends the reduced value of a date-time field to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendValueReduced(TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate)Appends the reduced value of a date-time field to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. parseDefaulting(TemporalField field, long value)Appends a default value for a field to the formatter for use in parsing.DateTimeFormatterDateTimeFormatter. withResolverFields(TemporalField... resolverFields)Returns a copy of this formatter with a new set of resolver fields.Method parameters in java.time.format with type arguments of type TemporalField Modifier and Type Method Description DateTimeFormatterDateTimeFormatter. withResolverFields(Set<TemporalField> resolverFields)Returns a copy of this formatter with a new set of resolver fields. -
Uses of TemporalField in java.time.temporal
Classes in java.time.temporal that implement TemporalField Modifier and Type Class Description classChronoFieldA standard set of fields.Fields in java.time.temporal declared as TemporalField Modifier and Type Field Description static TemporalFieldIsoFields. DAY_OF_QUARTERThe field that represents the day-of-quarter.static TemporalFieldJulianFields. JULIAN_DAYJulian Day field.static TemporalFieldJulianFields. MODIFIED_JULIAN_DAYModified Julian Day field.static TemporalFieldIsoFields. QUARTER_OF_YEARThe field that represents the quarter-of-year.static TemporalFieldJulianFields. RATA_DIERata Die field.static TemporalFieldIsoFields. WEEK_BASED_YEARThe field that represents the week-based-year.static TemporalFieldIsoFields. WEEK_OF_WEEK_BASED_YEARThe field that represents the week-of-week-based-year.Methods in java.time.temporal that return TemporalField Modifier and Type Method Description TemporalFieldWeekFields. dayOfWeek()Returns a field to access the day of week based on thisWeekFields.TemporalFieldWeekFields. weekBasedYear()Returns a field to access the year of a week-based-year based on thisWeekFields.TemporalFieldWeekFields. weekOfMonth()Returns a field to access the week of month based on thisWeekFields.TemporalFieldWeekFields. weekOfWeekBasedYear()Returns a field to access the week of a week-based-year based on thisWeekFields.TemporalFieldWeekFields. weekOfYear()Returns a field to access the week of year based on thisWeekFields.Methods in java.time.temporal with parameters of type TemporalField Modifier and Type Method Description intValueRange. 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.TemporalTemporal. with(TemporalField field, long newValue)Returns an object of the same type as this object with the specified field altered.Method parameters in java.time.temporal with type arguments of type TemporalField Modifier and Type Method Description default TemporalAccessorTemporalField. resolve(Map<TemporalField,Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)Resolves this field to provide a simpler alternative or a date.
-