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.
Simulates JDK 8 features on JDK 7.
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.private intLocalDate.get0(TemporalField field) private intLocalTime.get0(TemporalField field) 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 TypeMethodDescriptionintChronoLocalDateTimeImpl.get(TemporalField field) intChronoZonedDateTime.get(TemporalField field) intHijrahEra.get(TemporalField field) intIsoEra.get(TemporalField field) intMinguoEra.get(TemporalField field) intThaiBuddhistEra.get(TemporalField field) longChronoLocalDateTimeImpl.getLong(TemporalField field) longChronoZonedDateTime.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) booleanChronoLocalDateTimeImpl.isSupported(TemporalField field) booleanChronoZonedDateTimeImpl.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) ChronoLocalDateTimeImpl.range(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) ChronoLocalDateTimeImpl.with(TemporalField field, long newValue) abstract ChronoZonedDateTime<D>ChronoZonedDateTime.with(TemporalField field, long newValue) ChronoZonedDateTimeImpl.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) private JapaneseDateJapaneseChronology.resolveEYD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle, JapaneseEra era, int yoe) private JapaneseDateJapaneseChronology.resolveEYMD(Map<TemporalField, Long> fieldValues, ResolverStyle resolverStyle, JapaneseEra era, int yoe) (package private) voidChronology.updateResolveMap(Map<TemporalField, Long> fieldValues, ChronoField field, long value) Updates the map of field-values during resolution. -
Uses of TemporalField in org.threeten.bp.format
Fields in org.threeten.bp.format declared as TemporalFieldModifier and TypeFieldDescriptionprivate final TemporalFieldDateTimeFormatterBuilder.DefaultingParser.fieldprivate final TemporalFieldDateTimeFormatterBuilder.FractionPrinterParser.field(package private) final TemporalFieldDateTimeFormatterBuilder.NumberPrinterParser.fieldprivate final TemporalFieldDateTimeFormatterBuilder.TextPrinterParser.fieldFields in org.threeten.bp.format with type parameters of type TemporalFieldModifier and TypeFieldDescriptionprivate final ConcurrentMap<Map.Entry<TemporalField,Locale>, Object> SimpleDateTimeTextProvider.cacheCache.private static final Map<Character,TemporalField> DateTimeFormatterBuilder.FIELD_MAPMap of letters to fields.(package private) final Map<TemporalField,Long> DateTimeBuilder.fieldValuesThe map of other fields.(package private) final Map<TemporalField,Long> DateTimeParseContext.Parsed.fieldValuesprivate final Set<TemporalField>DateTimeFormatter.resolverFieldsThe fields to use in resolving, null for all fields.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 TypeMethodDescription(package private) DateTimeBuilderDateTimeBuilder.addFieldValue(TemporalField field, long value) Adds a field-value pair to the builder.DateTimeFormatterBuilder.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.private ObjectSimpleDateTimeTextProvider.createStore(TemporalField field, Locale locale) private ObjectSimpleDateTimeTextProvider.findStore(TemporalField field, Locale locale) intDateTimeParseContext.Parsed.get(TemporalField field) private LongDateTimeBuilder.getFieldValue0(TemporalField field) longDateTimeBuilder.getLong(TemporalField field) longDateTimeParseContext.Parsed.getLong(TemporalField field) (package private) LongDateTimeParseContext.getParsed(TemporalField field) Gets the first value that was parsed for the specified 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.SimpleDateTimeTextProvider.getText(TemporalField field, long value, TextStyle style, Locale locale) 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.SimpleDateTimeTextProvider.getTextIterator(TemporalField field, TextStyle style, Locale locale) (package private) LongDateTimePrintContext.getValue(TemporalField field) Gets the value of the specified field.booleanDateTimeBuilder.isSupported(TemporalField field) booleanDateTimeParseContext.Parsed.isSupported(TemporalField field) DateTimeFormatterBuilder.parseDefaulting(TemporalField field, long value) Appends a default value for a field to the formatter for use in parsing.private voidDateTimeFormatterBuilder.parseField(char cur, int count, TemporalField field) private DateTimeBuilderDateTimeBuilder.putFieldValue0(TemporalField field, long value) private voidDateTimeBuilder.resolveMakeChanges(TemporalField targetField, ChronoLocalDate date) private voidDateTimeBuilder.resolveMakeChanges(TemporalField targetField, LocalTime time) (package private) intDateTimeParseContext.setParsedField(TemporalField field, long value, int errorPos, int successPos) Stores the parsed field.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.(package private)DefaultingParser(TemporalField field, long value) (package private)FractionPrinterParser(TemporalField field, int minWidth, int maxWidth, boolean decimalPoint) Constructor.(package private)NumberPrinterParser(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle) Constructor.privateNumberPrinterParser(TemporalField field, int minWidth, int maxWidth, SignStyle signStyle, int subsequentWidth) Constructor.(package private)ReducedPrinterParser(TemporalField field, int width, int maxWidth, int baseValue, ChronoLocalDate baseDate) Constructor.privateReducedPrinterParser(TemporalField field, int minWidth, int maxWidth, int baseValue, ChronoLocalDate baseDate, int subsequentWidth) (package private)TextPrinterParser(TemporalField field, TextStyle textStyle, DateTimeTextProvider provider) Constructor.Constructor parameters in org.threeten.bp.format with type arguments of type TemporalFieldModifierConstructorDescription(package private)DateTimeFormatter(DateTimeFormatterBuilder.CompositePrinterParser printerParser, Locale locale, DecimalStyle decimalStyle, ResolverStyle resolverStyle, Set<TemporalField> resolverFields, Chronology chrono, ZoneId zone) Constructor. -
Uses of TemporalField in org.threeten.bp.jdk8
Methods in org.threeten.bp.jdk8 with parameters of type TemporalFieldModifier and TypeMethodDescriptionintDefaultInterfaceEra.get(TemporalField field) intDefaultInterfaceTemporalAccessor.get(TemporalField field) longDefaultInterfaceEra.getLong(TemporalField field) booleanDefaultInterfaceEra.isSupported(TemporalField field) DefaultInterfaceTemporalAccessor.range(TemporalField field) -
Uses of TemporalField in org.threeten.bp.temporal
Classes in org.threeten.bp.temporal that implement TemporalFieldModifier and TypeClassDescriptionenumA standard set of fields.private static enumImplementation of the field.private static enumHidden implementation.(package private) static classField type that computes DayOfWeek, WeekOfMonth, and WeekOfYear based on a WeekFields.Fields in org.threeten.bp.temporal declared as TemporalFieldModifier and TypeFieldDescriptionstatic final TemporalFieldIsoFields.DAY_OF_QUARTERThe field that represents the day-of-quarter.private final TemporalFieldWeekFields.dayOfWeekThe field used to access the computed DayOfWeek.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.private final TemporalFieldWeekFields.weekBasedYearThe field used to access the computed WeekBasedYear.private final TemporalFieldWeekFields.weekOfMonthThe field used to access the computed WeekOfMonth.private final TemporalFieldWeekFields.weekOfWeekBasedYearThe field used to access the computed WeekOfWeekBasedYear.private final TemporalFieldWeekFields.weekOfYearThe field used to access the computed WeekOfYear.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.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.TemporalAccessor.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) IsoFields.Field.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle) JulianFields.Field.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 builderWeekFields.ComputedDayOfField.resolve(Map<TemporalField, Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)