Uses of Interface
org.threeten.bp.temporal.TemporalField
-
Packages that use TemporalField Package Description org.threeten.bp The main API for dates, times, instants, and durations.org.threeten.bp.chrono Support for calendar systems other than the default ISO.org.threeten.bp.format Provides classes to print and parse dates and times.org.threeten.bp.jdk8 Simulates JDK 8 features on JDK 7.org.threeten.bp.temporal 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 TemporalField Modifier and Type Method Description int
DayOfWeek. get(TemporalField field)
Gets the value of the specified field from this day-of-week as anint
.int
Instant. get(TemporalField field)
Gets the value of the specified field from this instant as anint
.int
LocalDate. get(TemporalField field)
Gets the value of the specified field from this date as anint
.int
LocalDateTime. get(TemporalField field)
Gets the value of the specified field from this date-time as anint
.int
LocalTime. get(TemporalField field)
Gets the value of the specified field from this time as anint
.int
Month. get(TemporalField field)
Gets the value of the specified field from this month-of-year as anint
.int
MonthDay. get(TemporalField field)
Gets the value of the specified field from this month-day as anint
.int
OffsetDateTime. get(TemporalField field)
Gets the value of the specified field from this date-time as anint
.int
OffsetTime. get(TemporalField field)
Gets the value of the specified field from this time as anint
.int
Year. get(TemporalField field)
Gets the value of the specified field from this year as anint
.int
YearMonth. get(TemporalField field)
Gets the value of the specified field from this year-month as anint
.int
ZonedDateTime. get(TemporalField field)
Gets the value of the specified field from this date-time as anint
.int
ZoneOffset. get(TemporalField field)
Gets the value of the specified field from this offset as anint
.long
DayOfWeek. getLong(TemporalField field)
Gets the value of the specified field from this day-of-week as along
.long
Instant. getLong(TemporalField field)
Gets the value of the specified field from this instant as along
.long
LocalDate. getLong(TemporalField field)
Gets the value of the specified field from this date as along
.long
LocalDateTime. getLong(TemporalField field)
Gets the value of the specified field from this date-time as along
.long
LocalTime. getLong(TemporalField field)
Gets the value of the specified field from this time as along
.long
Month. getLong(TemporalField field)
Gets the value of the specified field from this month-of-year as along
.long
MonthDay. getLong(TemporalField field)
Gets the value of the specified field from this month-day as along
.long
OffsetDateTime. getLong(TemporalField field)
Gets the value of the specified field from this date-time as along
.long
OffsetTime. getLong(TemporalField field)
Gets the value of the specified field from this time as along
.long
Year. getLong(TemporalField field)
Gets the value of the specified field from this year as along
.long
YearMonth. getLong(TemporalField field)
Gets the value of the specified field from this year-month as along
.long
ZonedDateTime. getLong(TemporalField field)
Gets the value of the specified field from this date-time as along
.long
ZoneOffset. getLong(TemporalField field)
Gets the value of the specified field from this offset as along
.boolean
DayOfWeek. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
Instant. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
LocalDate. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
LocalDateTime. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
LocalTime. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
Month. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
MonthDay. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
OffsetDateTime. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
OffsetTime. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
Year. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
YearMonth. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
ZonedDateTime. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
ZoneOffset. isSupported(TemporalField field)
Checks if the specified field is supported.ValueRange
DayOfWeek. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
Instant. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
LocalDate. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
LocalDateTime. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
LocalTime. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
Month. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
MonthDay. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
OffsetDateTime. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
OffsetTime. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
Year. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
YearMonth. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
ZonedDateTime. range(TemporalField field)
Gets the range of valid values for the specified field.ValueRange
ZoneOffset. range(TemporalField field)
Gets the range of valid values for the specified field.Instant
Instant. with(TemporalField field, long newValue)
Returns a copy of this instant with the specified field set to a new value.LocalDate
LocalDate. with(TemporalField field, long newValue)
Returns a copy of this date with the specified field set to a new value.LocalDateTime
LocalDateTime. with(TemporalField field, long newValue)
Returns a copy of this date-time with the specified field set to a new value.LocalTime
LocalTime. with(TemporalField field, long newValue)
Returns a copy of this time with the specified field set to a new value.OffsetDateTime
OffsetDateTime. with(TemporalField field, long newValue)
Returns a copy of this date-time with the specified field set to a new value.OffsetTime
OffsetTime. with(TemporalField field, long newValue)
Returns a copy of this time with the specified field set to a new value.Year
Year. with(TemporalField field, long newValue)
Returns a copy of this year with the specified field set to a new value.YearMonth
YearMonth. with(TemporalField field, long newValue)
Returns a copy of this year-month with the specified field set to a new value.ZonedDateTime
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 TemporalField Modifier and Type Method Description int
ChronoZonedDateTime. get(TemporalField field)
int
HijrahEra. get(TemporalField field)
int
IsoEra. get(TemporalField field)
int
MinguoEra. get(TemporalField field)
int
ThaiBuddhistEra. get(TemporalField field)
long
ChronoZonedDateTime. getLong(TemporalField field)
long
HijrahDate. getLong(TemporalField field)
long
HijrahEra. getLong(TemporalField field)
long
IsoEra. getLong(TemporalField field)
long
JapaneseDate. getLong(TemporalField field)
long
MinguoDate. getLong(TemporalField field)
long
MinguoEra. getLong(TemporalField field)
long
ThaiBuddhistDate. getLong(TemporalField field)
long
ThaiBuddhistEra. getLong(TemporalField field)
boolean
ChronoLocalDate. isSupported(TemporalField field)
boolean
HijrahEra. isSupported(TemporalField field)
boolean
IsoEra. isSupported(TemporalField field)
boolean
JapaneseDate. isSupported(TemporalField field)
Checks if the specified field is supported.boolean
MinguoEra. isSupported(TemporalField field)
boolean
ThaiBuddhistEra. isSupported(TemporalField field)
ValueRange
ChronoZonedDateTime. range(TemporalField field)
ValueRange
HijrahDate. range(TemporalField field)
ValueRange
HijrahEra. range(TemporalField field)
ValueRange
IsoEra. range(TemporalField field)
ValueRange
JapaneseDate. range(TemporalField field)
ValueRange
JapaneseEra. range(TemporalField field)
ValueRange
MinguoDate. range(TemporalField field)
ValueRange
MinguoEra. range(TemporalField field)
ValueRange
ThaiBuddhistDate. range(TemporalField field)
ValueRange
ThaiBuddhistEra. range(TemporalField field)
abstract ChronoLocalDate
ChronoLocalDate. with(TemporalField field, long newValue)
abstract ChronoLocalDateTime<D>
ChronoLocalDateTime. with(TemporalField field, long newValue)
abstract ChronoZonedDateTime<D>
ChronoZonedDateTime. with(TemporalField field, long newValue)
HijrahDate
HijrahDate. with(TemporalField field, long newValue)
JapaneseDate
JapaneseDate. with(TemporalField field, long newValue)
MinguoDate
MinguoDate. with(TemporalField field, long newValue)
ThaiBuddhistDate
ThaiBuddhistDate. with(TemporalField field, long newValue)
Method parameters in org.threeten.bp.chrono with type arguments of type TemporalField Modifier and Type Method Description abstract ChronoLocalDate
Chronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
Resolves parsedChronoField
values into a date during parsing.HijrahDate
HijrahChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
LocalDate
IsoChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
JapaneseDate
JapaneseChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
MinguoDate
MinguoChronology. resolveDate(Map<TemporalField,Long> fieldValues, ResolverStyle resolverStyle)
ThaiBuddhistDate
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 TemporalField Modifier and Type Method Description Set<TemporalField>
DateTimeFormatter. getResolverFields()
Gets the resolver fields to use during parsing.Methods in org.threeten.bp.format with parameters of type TemporalField Modifier and Type Method Description DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendFraction(TemporalField field, int minWidth, int maxWidth, boolean decimalPoint)
Appends the fractional value of a date-time field to the formatter.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendText(TemporalField field)
Appends the text of a date-time field to the formatter using the full text style.DateTimeFormatterBuilder
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
DateTimeFormatterBuilder. appendText(TemporalField field, TextStyle textStyle)
Appends the text of a date-time field to the formatter.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValue(TemporalField field)
Appends the value of a date-time field to the formatter using a normal output style.DateTimeFormatterBuilder
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
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
DateTimeFormatterBuilder. appendValueReduced(TemporalField field, int width, int maxWidth, int baseValue)
Appends the reduced value of a date-time field to the formatter.DateTimeFormatterBuilder
DateTimeFormatterBuilder. appendValueReduced(TemporalField field, int width, int maxWidth, ChronoLocalDate baseDate)
Appends the reduced value of a date-time field to the formatter.abstract String
DateTimeTextProvider. getText(TemporalField field, long value, TextStyle style, Locale locale)
Gets the text for the specified field, locale and style for the purpose of printing.abstract Iterator<Map.Entry<String,Long>>
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.DateTimeFormatterBuilder
DateTimeFormatterBuilder. parseDefaulting(TemporalField field, long value)
Appends a default value for a field to the formatter for use in parsing.DateTimeFormatter
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 TemporalField Modifier and Type Method Description DateTimeFormatter
DateTimeFormatter. withResolverFields(Set<TemporalField> resolverFields)
Returns a copy of this formatter with a new set of resolver fields. -
Uses of TemporalField in org.threeten.bp.jdk8
Methods in org.threeten.bp.jdk8 with parameters of type TemporalField Modifier and Type Method Description int
DefaultInterfaceEra. get(TemporalField field)
int
DefaultInterfaceTemporalAccessor. get(TemporalField field)
long
DefaultInterfaceEra. getLong(TemporalField field)
boolean
DefaultInterfaceEra. isSupported(TemporalField field)
ValueRange
DefaultInterfaceTemporalAccessor. range(TemporalField field)
-
Uses of TemporalField in org.threeten.bp.temporal
Classes in org.threeten.bp.temporal that implement TemporalField Modifier and Type Class Description class
ChronoField
A standard set of fields.Fields in org.threeten.bp.temporal declared as TemporalField Modifier and Type Field Description static TemporalField
IsoFields. DAY_OF_QUARTER
The field that represents the day-of-quarter.static TemporalField
JulianFields. JULIAN_DAY
Julian Day field.static TemporalField
JulianFields. MODIFIED_JULIAN_DAY
Modified Julian Day field.static TemporalField
IsoFields. QUARTER_OF_YEAR
The field that represents the quarter-of-year.static TemporalField
JulianFields. RATA_DIE
Rata Die field.static TemporalField
IsoFields. WEEK_BASED_YEAR
The field that represents the week-based-year.static TemporalField
IsoFields. WEEK_OF_WEEK_BASED_YEAR
The field that represents the week-of-week-based-year.Methods in org.threeten.bp.temporal that return TemporalField Modifier and Type Method Description TemporalField
WeekFields. dayOfWeek()
Returns a field to access the day of week based on thisWeekFields
.TemporalField
WeekFields. weekBasedYear()
Returns a field to access the year of a week-based-year based on thisWeekFields
.TemporalField
WeekFields. weekOfMonth()
Returns a field to access the week of month based on thisWeekFields
.TemporalField
WeekFields. weekOfWeekBasedYear()
Returns a field to access the week of a week-based-year based on thisWeekFields
.TemporalField
WeekFields. weekOfYear()
Returns a field to access the week of year based on thisWeekFields
.Methods in org.threeten.bp.temporal with parameters of type TemporalField Modifier and Type Method Description int
ValueRange. checkValidIntValue(long value, TemporalField field)
Checks that the specified value is valid and fits in anint
.long
ValueRange. checkValidValue(long value, TemporalField field)
Checks that the specified value is valid.int
TemporalAccessor. get(TemporalField field)
Gets the value of the specified field as anint
.long
TemporalAccessor. getLong(TemporalField field)
Gets the value of the specified field as along
.boolean
TemporalAccessor. isSupported(TemporalField field)
Checks if the specified field is supported.ValueRange
TemporalAccessor. range(TemporalField field)
Gets the range of valid values for the specified field.Temporal
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 TemporalField Modifier and Type Method Description TemporalAccessor
ChronoField. resolve(Map<TemporalField,Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)
TemporalAccessor
TemporalField. resolve(Map<TemporalField,Long> fieldValues, TemporalAccessor partialTemporal, ResolverStyle resolverStyle)
Resolves the date/time information in the builder
-