通过代码糖化提供 Java 8+ API

Android Studio 现在支持使用许多 Java 8+ API,而无需为您的应用设置最低 API 等级。 通过一个称为API 代码糖化 的过程,DEX 编译器 (D8) 允许您在支持较旧 Android 版本的应用中包含更多标准语言 API。

以下是可搜索的表格,显示在将最新版本的 Android Gradle Plugin 与coreLibraryDesugaring 依赖项设置为com.android.tools:desugar_jdk_libs:1.1.8build.gradle 中(有关更多信息,请参阅API 代码糖化)时可用的哪些 Java 8+ 库。

包 +
类,
枚举,
或接口
构造函数,
属性,
和方法
备注
java.lang


 Iterable


  • public void forEach(Consumer action)
  • public java.util.Spliterator spliterator()

现有类中的附加方法。
 

java.time
参见自定义

 Clock


  • protected Clock()
  • public boolean equals(Object obj)
  • public static Clock fixed(
     Instant fixedInstant, ZoneId zone)
  • public abstract ZoneId getZone()
  • public int hashCode()
  • public abstract Instant instant()
  • public long millis()
  • public static Clock offset(
     Clock baseClock, Duration offsetDuration)
  • public static Clock system(ZoneId zone)
  • public static Clock systemDefaultZone()
  • public static Clock systemUTC()
  • public static Clock tick(
     Clock baseClock, Duration tickDuration)
  • public static Clock tickMinutes(ZoneId zone)
  • public static Clock tickSeconds(ZoneId zone)
  • public abstract Clock withZone(ZoneId p0)

完全实现的类。
 

java.time
参见自定义

 DateTimeException


  • public DateTimeException(String message)
  • public DateTimeException(
     String message, Throwable cause)

完全实现的类。
 

java.time
参见自定义

 DayOfWeek


  • public static final DayOfWeek FRIDAY
  • public static final DayOfWeek MONDAY
  • public static final DayOfWeek SATURDAY
  • public static final DayOfWeek SUNDAY
  • public static final DayOfWeek THURSDAY
  • public static final DayOfWeek TUESDAY
  • public static final DayOfWeek WEDNESDAY
  • public Temporal adjustInto(Temporal temporal)
  • public static DayOfWeek from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public long getLong(TemporalField field)
  • public int getValue()
  • public boolean isSupported(TemporalField field)
  • public DayOfWeek minus(long days)
  • public static DayOfWeek of(int dayOfWeek)
  • public DayOfWeek plus(long days)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public static DayOfWeek valueOf(String name)
  • public static DayOfWeek[] values()

完全实现的类。
 

java.time
参见自定义

 Duration


  • public static final Duration ZERO
  • public Duration abs()
  • public Temporal addTo(Temporal temporal)
  • public static Duration between(
     Temporal startInclusive, Temporal endExclusive)
  • public int compareTo(Duration otherDuration)
  • public Duration dividedBy(long divisor)
  • public boolean equals(Object otherDuration)
  • public static Duration from(TemporalAmount amount)
  • public long get(TemporalUnit unit)
  • public int getNano()
  • public long getSeconds()
  • public java.util.List getUnits()
  • public int hashCode()
  • public boolean isNegative()
  • public boolean isZero()
  • public Duration minus(
     long amountToSubtract, TemporalUnit unit)
  • public Duration minus(Duration duration)
  • public Duration minusDays(long daysToSubtract)
  • public Duration minusHours(long hoursToSubtract)
  • public Duration minusMillis(long millisToSubtract)
  • public Duration minusMinutes(long minutesToSubtract)
  • public Duration minusNanos(long nanosToSubtract)
  • public Duration minusSeconds(long secondsToSubtract)
  • public Duration multipliedBy(long multiplicand)
  • public Duration negated()
  • public static Duration of(
     long amount, TemporalUnit unit)
  • public static Duration ofDays(long days)
  • public static Duration ofHours(long hours)
  • public static Duration ofMillis(long millis)
  • public static Duration ofMinutes(long minutes)
  • public static Duration ofNanos(long nanos)
  • public static Duration ofSeconds(long seconds)
  • public static Duration ofSeconds(
     long seconds, long nanoAdjustment)
  • public static Duration parse(CharSequence text)
  • public Duration plus(
     long amountToAdd, TemporalUnit unit)
  • public Duration plus(Duration duration)
  • public Duration plusDays(long daysToAdd)
  • public Duration plusHours(long hoursToAdd)
  • public Duration plusMillis(long millisToAdd)
  • public Duration plusMinutes(long minutesToAdd)
  • public Duration plusNanos(long nanosToAdd)
  • public Duration plusSeconds(long secondsToAdd)
  • public Temporal subtractFrom(Temporal temporal)
  • public long toDays()
  • public long toHours()
  • public long toMillis()
  • public long toMinutes()
  • public long toNanos()
  • public String toString()
  • public Duration withNanos(int nanoOfSecond)
  • public Duration withSeconds(long seconds)

Android T 中存在的一些方法 (9 个) 不受支持。

java.time
参见自定义

 Instant


  • public static final Instant EPOCH
  • public static final Instant MAX
  • public static final Instant MIN
  • public Temporal adjustInto(Temporal temporal)
  • public OffsetDateTime atOffset(ZoneOffset offset)
  • public ZonedDateTime atZone(ZoneId zone)
  • public int compareTo(Instant otherInstant)
  • public boolean equals(Object otherInstant)
  • public static Instant from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public long getEpochSecond()
  • public long getLong(TemporalField field)
  • public int getNano()
  • public int hashCode()
  • public boolean isAfter(Instant otherInstant)
  • public boolean isBefore(Instant otherInstant)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public Instant minus(
     long amountToSubtract, TemporalUnit unit)
  • public Instant minus(
     TemporalAmount amountToSubtract)
  • public Instant minusMillis(long millisToSubtract)
  • public Instant minusNanos(long nanosToSubtract)
  • public Instant minusSeconds(long secondsToSubtract)
  • public static Instant now()
  • public static Instant now(Clock clock)
  • public static Instant ofEpochMilli(long epochMilli)
  • public static Instant ofEpochSecond(
     long epochSecond)
  • public static Instant ofEpochSecond(
     long epochSecond, long nanoAdjustment)
  • public static Instant parse(CharSequence text)
  • public Instant plus(
     long amountToAdd, TemporalUnit unit)
  • public Instant plus(TemporalAmount amountToAdd)
  • public Instant plusMillis(long millisToAdd)
  • public Instant plusNanos(long nanosToAdd)
  • public Instant plusSeconds(long secondsToAdd)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public long toEpochMilli()
  • public String toString()
  • public Instant truncatedTo(TemporalUnit unit)
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public Instant with(TemporalAdjuster adjuster)
  • public Instant with(
     TemporalField field, long newValue)

完全实现的类。
 

java.time
参见自定义

 LocalDate


  • public static final LocalDate MAX
  • public static final LocalDate MIN
  • public Temporal adjustInto(Temporal temporal)
  • public LocalDateTime atStartOfDay()
  • public ZonedDateTime atStartOfDay(ZoneId zone)
  • public LocalDateTime atTime(int hour, int minute)
  • public LocalDateTime atTime(
     int hour, int minute, int second)
  • public LocalDateTime atTime(
      int hour,
      int minute,
      int second,
      int nanoOfSecond)
  • public LocalDateTime atTime(LocalTime time)
  • public OffsetDateTime atTime(OffsetTime time)
  • public int compareTo(ChronoLocalDate other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static LocalDate from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public IsoChronology getChronology()
  • public int getDayOfMonth()
  • public DayOfWeek getDayOfWeek()
  • public int getDayOfYear()
  • public IsoEra getEra()23
  • public long getLong(TemporalField field)
  • public Month getMonth()
  • public int getMonthValue()
  • public int getYear()
  • public int hashCode()
  • public boolean isAfter(ChronoLocalDate other)
  • public boolean isBefore(ChronoLocalDate other)
  • public boolean isEqual(ChronoLocalDate other)
  • public boolean isLeapYear()
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public int lengthOfMonth()
  • public int lengthOfYear()
  • public LocalDate minus(
     long amountToSubtract, TemporalUnit unit)
  • public LocalDate minus(
     TemporalAmount amountToSubtract)
  • public LocalDate minusDays(long daysToSubtract)
  • public LocalDate minusMonths(long monthsToSubtract)
  • public LocalDate minusWeeks(long weeksToSubtract)
  • public LocalDate minusYears(long yearsToSubtract)
  • public static LocalDate now()
  • public static LocalDate now(Clock clock)
  • public static LocalDate now(ZoneId zone)
  • public static LocalDate of(
     int year, int month, int dayOfMonth)
  • public static LocalDate of(
     int year, Month month, int dayOfMonth)
  • public static LocalDate ofEpochDay(long epochDay)
  • public static LocalDate ofYearDay(
     int year, int dayOfYear)
  • public static LocalDate parse(CharSequence text)
  • public static LocalDate parse(
     CharSequence text, DateTimeFormatter formatter)
  • public LocalDate plus(
     long amountToAdd, TemporalUnit unit)
  • public LocalDate plus(TemporalAmount amountToAdd)
  • public LocalDate plusDays(long daysToAdd)
  • public LocalDate plusMonths(long monthsToAdd)
  • public LocalDate plusWeeks(long weeksToAdd)
  • public LocalDate plusYears(long yearsToAdd)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public String toString()
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public Period until(
     ChronoLocalDate endDateExclusive)
  • public LocalDate with(TemporalAdjuster adjuster)
  • public LocalDate with(
     TemporalField field, long newValue)
  • public LocalDate withDayOfMonth(int dayOfMonth)
  • public LocalDate withDayOfYear(int dayOfYear)
  • public LocalDate withMonth(int month)
  • public LocalDate withYear(int year)

2 Android T 中不存在(编译时可能无法解析)。
 3 在所有 minSDK 等级中均不受支持。
 

java.time
参见自定义

 LocalDateTime


  • public static final LocalDateTime MAX
  • public static final LocalDateTime MIN
  • public Temporal adjustInto(Temporal temporal)
  • public OffsetDateTime atOffset(ZoneOffset offset)
  • public ZonedDateTime atZone(ZoneId zone)
  • public int compareTo(ChronoLocalDateTime other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static LocalDateTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getDayOfMonth()
  • public DayOfWeek getDayOfWeek()
  • public int getDayOfYear()
  • public int getHour()
  • public long getLong(TemporalField field)
  • public int getMinute()
  • public Month getMonth()
  • public int getMonthValue()
  • public int getNano()
  • public int getSecond()
  • public int getYear()
  • public int hashCode()
  • public boolean isAfter(ChronoLocalDateTime other)
  • public boolean isBefore(ChronoLocalDateTime other)
  • public boolean isEqual(ChronoLocalDateTime other)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public LocalDateTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public LocalDateTime minus(
     TemporalAmount amountToSubtract)
  • public LocalDateTime minusDays(long days)
  • public LocalDateTime minusHours(long hours)
  • public LocalDateTime minusMinutes(long minutes)
  • public LocalDateTime minusMonths(long months)
  • public LocalDateTime minusNanos(long nanos)
  • public LocalDateTime minusSeconds(long seconds)
  • public LocalDateTime minusWeeks(long weeks)
  • public LocalDateTime minusYears(long years)
  • public static LocalDateTime now()
  • public static LocalDateTime now(Clock clock)
  • public static LocalDateTime now(ZoneId zone)
  • public static LocalDateTime of(
      int year,
      int month,
      int dayOfMonth,
      int hour,
      int minute)
  • public static LocalDateTime of(
      int year,
      int month,
      int dayOfMonth,
      int hour,
      int minute,
      int second)
  • public static LocalDateTime of(
      int year,
      int month,
      int dayOfMonth,
      int hour,
      int minute,
      int second,
      int nanoOfSecond)
  • public static LocalDateTime of(
      int year,
      Month month,
      int dayOfMonth,
      int hour,
      int minute)
  • public static LocalDateTime of(
      int year,
      Month month,
      int dayOfMonth,
      int hour,
      int minute,
      int second)
  • public static LocalDateTime of(
      int year,
      Month month,
      int dayOfMonth,
      int hour,
      int minute,
      int second,
      int nanoOfSecond)
  • public static LocalDateTime of(
     LocalDate date, LocalTime time)
  • public static LocalDateTime ofEpochSecond(
      long epochSecond,
      int nanoOfSecond,
      ZoneOffset offset)
  • public static LocalDateTime ofInstant(
     Instant instant, ZoneId zone)
  • public static LocalDateTime parse(CharSequence text)
  • public static LocalDateTime parse(
     CharSequence text, DateTimeFormatter formatter)
  • public LocalDateTime plus(
     long amountToAdd, TemporalUnit unit)
  • public LocalDateTime plus(
     TemporalAmount amountToAdd)
  • public LocalDateTime plusDays(long days)
  • public LocalDateTime plusHours(long hours)
  • public LocalDateTime plusMinutes(long minutes)
  • public LocalDateTime plusMonths(long months)
  • public LocalDateTime plusNanos(long nanos)
  • public LocalDateTime plusSeconds(long seconds)
  • public LocalDateTime plusWeeks(long weeks)
  • public LocalDateTime plusYears(long years)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public LocalDate toLocalDate()
  • public LocalTime toLocalTime()
  • public String toString()
  • public LocalDateTime truncatedTo(TemporalUnit unit)
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public LocalDateTime with(TemporalAdjuster adjuster)
  • public LocalDateTime with(
     TemporalField field, long newValue)
  • public LocalDateTime withDayOfMonth(int dayOfMonth)
  • public LocalDateTime withDayOfYear(int dayOfYear)
  • public LocalDateTime withHour(int hour)
  • public LocalDateTime withMinute(int minute)
  • public LocalDateTime withMonth(int month)
  • public LocalDateTime withNano(int nanoOfSecond)
  • public LocalDateTime withSecond(int second)
  • public LocalDateTime withYear(int year)

完全实现的类。
 

java.time
参见自定义

 LocalTime


  • public static final LocalTime MAX
  • public static final LocalTime MIDNIGHT
  • public static final LocalTime MIN
  • public static final LocalTime NOON
  • public Temporal adjustInto(Temporal temporal)
  • public LocalDateTime atDate(LocalDate date)
  • public OffsetTime atOffset(ZoneOffset offset)
  • public int compareTo(LocalTime other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static LocalTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getHour()
  • public long getLong(TemporalField field)
  • public int getMinute()
  • public int getNano()
  • public int getSecond()
  • public int hashCode()
  • public boolean isAfter(LocalTime other)
  • public boolean isBefore(LocalTime other)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public LocalTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public LocalTime minus(
     TemporalAmount amountToSubtract)
  • public LocalTime minusHours(long hoursToSubtract)
  • public LocalTime minusMinutes(
     long minutesToSubtract)
  • public LocalTime minusNanos(long nanosToSubtract)
  • public LocalTime minusSeconds(
     long secondsToSubtract)
  • public static LocalTime now()
  • public static LocalTime now(Clock clock)
  • public static LocalTime now(ZoneId zone)
  • public static LocalTime of(int hour, int minute)
  • public static LocalTime of(
     int hour, int minute, int second)
  • public static LocalTime of(
      int hour,
      int minute,
      int second,
      int nanoOfSecond)
  • public static LocalTime ofNanoOfDay(long nanoOfDay)
  • public static LocalTime ofSecondOfDay(
     long secondOfDay)
  • public static LocalTime parse(CharSequence text)
  • public static LocalTime parse(
     CharSequence text, DateTimeFormatter formatter)
  • public LocalTime plus(
     long amountToAdd, TemporalUnit unit)
  • public LocalTime plus(TemporalAmount amountToAdd)
  • public LocalTime plusHours(long hoursToAdd)
  • public LocalTime plusMinutes(long minutesToAdd)
  • public LocalTime plusNanos(long nanosToAdd)
  • public LocalTime plusSeconds(long secondstoAdd)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public long toNanoOfDay()
  • public int toSecondOfDay()
  • public String toString()
  • public LocalTime truncatedTo(TemporalUnit unit)
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public LocalTime with(TemporalAdjuster adjuster)
  • public LocalTime with(
     TemporalField field, long newValue)
  • public LocalTime withHour(int hour)
  • public LocalTime withMinute(int minute)
  • public LocalTime withNano(int nanoOfSecond)
  • public LocalTime withSecond(int second)

部分方法 (2) 在 Android T 中存在,但不支持。

java.time
参见自定义

 Month


  • public static final Month APRIL
  • public static final Month AUGUST
  • public static final Month DECEMBER
  • public static final Month FEBRUARY
  • public static final Month JANUARY
  • public static final Month JULY
  • public static final Month JUNE
  • public static final Month MARCH
  • public static final Month MAY
  • public static final Month NOVEMBER
  • public static final Month OCTOBER
  • public static final Month SEPTEMBER
  • public Temporal adjustInto(Temporal temporal)
  • public int firstDayOfYear(boolean leapYear)
  • public Month firstMonthOfQuarter()
  • public static Month from(TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public long getLong(TemporalField field)
  • public int getValue()
  • public boolean isSupported(TemporalField field)
  • public int length(boolean leapYear)
  • public int maxLength()
  • public int minLength()
  • public Month minus(long months)
  • public static Month of(int month)
  • public Month plus(long months)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public static Month valueOf(String name)
  • public static Month[] values()

完全实现的类。
 

java.time
参见自定义

 MonthDay


  • public Temporal adjustInto(Temporal temporal)
  • public LocalDate atYear(int year)
  • public int compareTo(MonthDay other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static MonthDay from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getDayOfMonth()
  • public long getLong(TemporalField field)
  • public Month getMonth()
  • public int getMonthValue()
  • public int hashCode()
  • public boolean isAfter(MonthDay other)
  • public boolean isBefore(MonthDay other)
  • public boolean isSupported(TemporalField field)
  • public boolean isValidYear(int year)
  • public static MonthDay now()
  • public static MonthDay now(Clock clock)
  • public static MonthDay now(ZoneId zone)
  • public static MonthDay of(int month, int dayOfMonth)
  • public static MonthDay of(
     Month month, int dayOfMonth)
  • public static MonthDay parse(CharSequence text)
  • public static MonthDay parse(
     CharSequence text, DateTimeFormatter formatter)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public String toString()
  • public MonthDay with(Month month)
  • public MonthDay withDayOfMonth(int dayOfMonth)
  • public MonthDay withMonth(int month)

完全实现的类。
 

java.time
参见自定义

 OffsetDateTime


  • public static final OffsetDateTime MAX
  • public static final OffsetDateTime MIN
  • public Temporal adjustInto(Temporal temporal)
  • public ZonedDateTime atZoneSameInstant(ZoneId zone)
  • public ZonedDateTime atZoneSimilarLocal(ZoneId zone)
  • public int compareTo(OffsetDateTime other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static OffsetDateTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getDayOfMonth()
  • public DayOfWeek getDayOfWeek()
  • public int getDayOfYear()
  • public int getHour()
  • public long getLong(TemporalField field)
  • public int getMinute()
  • public Month getMonth()
  • public int getMonthValue()
  • public int getNano()
  • public ZoneOffset getOffset()
  • public int getSecond()
  • public int getYear()
  • public int hashCode()
  • public boolean isAfter(OffsetDateTime other)
  • public boolean isBefore(OffsetDateTime other)
  • public boolean isEqual(OffsetDateTime other)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public OffsetDateTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public OffsetDateTime minus(
     TemporalAmount amountToSubtract)
  • public OffsetDateTime minusDays(long days)
  • public OffsetDateTime minusHours(long hours)
  • public OffsetDateTime minusMinutes(long minutes)
  • public OffsetDateTime minusMonths(long months)
  • public OffsetDateTime minusNanos(long nanos)
  • public OffsetDateTime minusSeconds(long seconds)
  • public OffsetDateTime minusWeeks(long weeks)
  • public OffsetDateTime minusYears(long years)
  • public static OffsetDateTime now()
  • public static OffsetDateTime now(Clock clock)
  • public static OffsetDateTime now(ZoneId zone)
  • public static OffsetDateTime of(
      int year,
      int month,
      int dayOfMonth,
      int hour,
      int minute,
      int second,
      int nanoOfSecond,
      ZoneOffset offset)
  • public static OffsetDateTime of(
     LocalDate date, LocalTime time, ZoneOffset offset)
  • public static OffsetDateTime of(
     LocalDateTime dateTime, ZoneOffset offset)
  • public static OffsetDateTime ofInstant(
     Instant instant, ZoneId zone)
  • public static OffsetDateTime parse(
     CharSequence text)
  • public static OffsetDateTime parse(
     CharSequence text, DateTimeFormatter formatter)
  • public OffsetDateTime plus(
     long amountToAdd, TemporalUnit unit)
  • public OffsetDateTime plus(
     TemporalAmount amountToAdd)
  • public OffsetDateTime plusDays(long days)
  • public OffsetDateTime plusHours(long hours)
  • public OffsetDateTime plusMinutes(long minutes)
  • public OffsetDateTime plusMonths(long months)
  • public OffsetDateTime plusNanos(long nanos)
  • public OffsetDateTime plusSeconds(long seconds)
  • public OffsetDateTime plusWeeks(long weeks)
  • public OffsetDateTime plusYears(long years)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public static java.util.Comparator timeLineOrder()
  • public long toEpochSecond()
  • public Instant toInstant()
  • public LocalDate toLocalDate()
  • public LocalDateTime toLocalDateTime()
  • public LocalTime toLocalTime()
  • public OffsetTime toOffsetTime()
  • public String toString()
  • public ZonedDateTime toZonedDateTime()
  • public OffsetDateTime truncatedTo(TemporalUnit unit)
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public OffsetDateTime with(
     TemporalAdjuster adjuster)
  • public OffsetDateTime with(
     TemporalField field, long newValue)
  • public OffsetDateTime withDayOfMonth(int dayOfMonth)
  • public OffsetDateTime withDayOfYear(int dayOfYear)
  • public OffsetDateTime withHour(int hour)
  • public OffsetDateTime withMinute(int minute)
  • public OffsetDateTime withMonth(int month)
  • public OffsetDateTime withNano(int nanoOfSecond)
  • public OffsetDateTime withOffsetSameInstant(
     ZoneOffset offset)
  • public OffsetDateTime withOffsetSameLocal(
     ZoneOffset offset)
  • public OffsetDateTime withSecond(int second)
  • public OffsetDateTime withYear(int year)

完全实现的类。
 

java.time
参见自定义

 OffsetTime


  • public static final OffsetTime MAX
  • public static final OffsetTime MIN
  • public Temporal adjustInto(Temporal temporal)
  • public OffsetDateTime atDate(LocalDate date)
  • public int compareTo(OffsetTime other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static OffsetTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getHour()
  • public long getLong(TemporalField field)
  • public int getMinute()
  • public int getNano()
  • public ZoneOffset getOffset()
  • public int getSecond()
  • public int hashCode()
  • public boolean isAfter(OffsetTime other)
  • public boolean isBefore(OffsetTime other)
  • public boolean isEqual(OffsetTime other)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public OffsetTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public OffsetTime minus(
     TemporalAmount amountToSubtract)
  • public OffsetTime minusHours(long hours)
  • public OffsetTime minusMinutes(long minutes)
  • public OffsetTime minusNanos(long nanos)
  • public OffsetTime minusSeconds(long seconds)
  • public static OffsetTime now()
  • public static OffsetTime now(Clock clock)
  • public static OffsetTime now(ZoneId zone)
  • public static OffsetTime of(
      int hour,
      int minute,
      int second,
      int nanoOfSecond,
      ZoneOffset offset)
  • public static OffsetTime of(
     LocalTime time, ZoneOffset offset)
  • public static OffsetTime ofInstant(
     Instant instant, ZoneId zone)
  • public static OffsetTime parse(CharSequence text)
  • public static OffsetTime parse(
     CharSequence text, DateTimeFormatter formatter)
  • public OffsetTime plus(
     long amountToAdd, TemporalUnit unit)
  • public OffsetTime plus(TemporalAmount amountToAdd)
  • public OffsetTime plusHours(long hours)
  • public OffsetTime plusMinutes(long minutes)
  • public OffsetTime plusNanos(long nanos)
  • public OffsetTime plusSeconds(long seconds)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public LocalTime toLocalTime()
  • public String toString()
  • public OffsetTime truncatedTo(TemporalUnit unit)
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public OffsetTime with(TemporalAdjuster adjuster)
  • public OffsetTime with(
     TemporalField field, long newValue)
  • public OffsetTime withHour(int hour)
  • public OffsetTime withMinute(int minute)
  • public OffsetTime withNano(int nanoOfSecond)
  • public OffsetTime withOffsetSameInstant(
     ZoneOffset offset)
  • public OffsetTime withOffsetSameLocal(
     ZoneOffset offset)
  • public OffsetTime withSecond(int second)

完全实现的类。
 

java.time
参见自定义

 Period


  • public static final Period ZERO
  • public Temporal addTo(Temporal temporal)
  • public static Period between(
      LocalDate startDateInclusive,
     LocalDate endDateExclusive)
  • public boolean equals(Object obj)
  • public static Period from(TemporalAmount amount)
  • public long get(TemporalUnit unit)
  • public IsoChronology getChronology()
  • public int getDays()
  • public int getMonths()
  • public java.util.List getUnits()
  • public int getYears()
  • public int hashCode()
  • public boolean isNegative()
  • public boolean isZero()
  • public Period minus(TemporalAmount amountToSubtract)
  • public Period minusDays(long daysToSubtract)
  • public Period minusMonths(long monthsToSubtract)
  • public Period minusYears(long yearsToSubtract)
  • public Period multipliedBy(int scalar)
  • public Period negated()
  • public Period normalized()
  • public static Period of(
     int years, int months, int days)
  • public static Period ofDays(int days)
  • public static Period ofMonths(int months)
  • public static Period ofWeeks(int weeks)
  • public static Period ofYears(int years)
  • public static Period parse(CharSequence text)
  • public Period plus(TemporalAmount amountToAdd)
  • public Period plusDays(long daysToAdd)
  • public Period plusMonths(long monthsToAdd)
  • public Period plusYears(long yearsToAdd)
  • public Temporal subtractFrom(Temporal temporal)
  • public String toString()
  • public long toTotalMonths()
  • public Period withDays(int days)
  • public Period withMonths(int months)
  • public Period withYears(int years)

完全实现的类。
 

java.time
参见自定义

 Year


  • public static final int MAX_VALUE
  • public static final int MIN_VALUE
  • public Temporal adjustInto(Temporal temporal)
  • public LocalDate atDay(int dayOfYear)
  • public YearMonth atMonth(int month)
  • public YearMonth atMonth(Month month)
  • public LocalDate atMonthDay(MonthDay monthDay)
  • public int compareTo(Year other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static Year from(TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public long getLong(TemporalField field)
  • public int getValue()
  • public int hashCode()
  • public boolean isAfter(Year other)
  • public boolean isBefore(Year other)
  • public boolean isLeap()
  • public static boolean isLeap(long year)
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public boolean isValidMonthDay(MonthDay monthDay)
  • public int length()
  • public Year minus(
     long amountToSubtract, TemporalUnit unit)
  • public Year minus(TemporalAmount amountToSubtract)
  • public Year minusYears(long yearsToSubtract)
  • public static Year now()
  • public static Year now(Clock clock)
  • public static Year now(ZoneId zone)
  • public static Year of(int isoYear)
  • public static Year parse(CharSequence text)
  • public static Year parse(
     CharSequence text, DateTimeFormatter formatter)
  • public Year plus(
     long amountToAdd, TemporalUnit unit)
  • public Year plus(TemporalAmount amountToAdd)
  • public Year plusYears(long yearsToAdd)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public String toString()
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public Year with(TemporalAdjuster adjuster)
  • public Year with(TemporalField field, long newValue)

完全实现的类。
 

java.time
参见自定义

 YearMonth


  • public Temporal adjustInto(Temporal temporal)
  • public LocalDate atDay(int dayOfMonth)
  • public LocalDate atEndOfMonth()
  • public int compareTo(YearMonth other)
  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static YearMonth from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public long getLong(TemporalField field)
  • public Month getMonth()
  • public int getMonthValue()
  • public int getYear()
  • public int hashCode()
  • public boolean isAfter(YearMonth other)
  • public boolean isBefore(YearMonth other)
  • public boolean isLeapYear()
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public boolean isValidDay(int dayOfMonth)
  • public int lengthOfMonth()
  • public int lengthOfYear()
  • public YearMonth minus(
     long amountToSubtract, TemporalUnit unit)
  • public YearMonth minus(
     TemporalAmount amountToSubtract)
  • public YearMonth minusMonths(long monthsToSubtract)
  • public YearMonth minusYears(long yearsToSubtract)
  • public static YearMonth now()
  • public static YearMonth now(Clock clock)
  • public static YearMonth now(ZoneId zone)
  • public static YearMonth of(int year, int month)
  • public static YearMonth of(int year, Month month)
  • public static YearMonth parse(CharSequence text)
  • public static YearMonth parse(
     CharSequence text, DateTimeFormatter formatter)
  • public YearMonth plus(
     long amountToAdd, TemporalUnit unit)
  • public YearMonth plus(TemporalAmount amountToAdd)
  • public YearMonth plusMonths(long monthsToAdd)
  • public YearMonth plusYears(long yearsToAdd)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public String toString()
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public YearMonth with(TemporalAdjuster adjuster)
  • public YearMonth with(
     TemporalField field, long newValue)
  • public YearMonth withMonth(int month)
  • public YearMonth withYear(int year)

完全实现的类。
 

java.time
参见自定义

 ZoneId


  • public static final java.util.Map SHORT_IDS
  • public boolean equals(Object obj)
  • public static ZoneId from(TemporalAccessor temporal)
  • public static java.util.Set getAvailableZoneIds()
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public abstract String getId()
  • public abstract ZoneRules getRules()
  • public int hashCode()
  • public ZoneId normalized()
  • public static ZoneId of(String zoneId)
  • public static ZoneId of(
     String zoneId, java.util.Map aliasMap)
  • public static ZoneId ofOffset(
     String prefix, ZoneOffset offset)
  • public static ZoneId systemDefault()
  • public String toString()

完全实现的类。
 

java.time
参见自定义

 ZoneOffset


  • public static final ZoneOffset MAX
  • public static final ZoneOffset MIN
  • public static final ZoneOffset UTC
  • public Temporal adjustInto(Temporal temporal)
  • public int compareTo(ZoneOffset other)
  • public boolean equals(Object obj)
  • public static ZoneOffset from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public String getId()
  • public long getLong(TemporalField field)
  • public ZoneRules getRules()
  • public int getTotalSeconds()
  • public int hashCode()
  • public boolean isSupported(TemporalField field)
  • public static ZoneOffset of(String offsetId)
  • public static ZoneOffset ofHours(int hours)
  • public static ZoneOffset ofHoursMinutes(
     int hours, int minutes)
  • public static ZoneOffset ofHoursMinutesSeconds(
     int hours, int minutes, int seconds)
  • public static ZoneOffset ofTotalSeconds(
     int totalSeconds)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public String toString()

完全实现的类。
 

java.time
参见自定义

 ZonedDateTime


  • public boolean equals(Object obj)
  • public String format(DateTimeFormatter formatter)
  • public static ZonedDateTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public int getDayOfMonth()
  • public DayOfWeek getDayOfWeek()
  • public int getDayOfYear()
  • public int getHour()
  • public long getLong(TemporalField field)
  • public int getMinute()
  • public Month getMonth()
  • public int getMonthValue()
  • public int getNano()
  • public ZoneOffset getOffset()
  • public int getSecond()
  • public int getYear()
  • public ZoneId getZone()
  • public int hashCode()
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public ZonedDateTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public ZonedDateTime minus(
     TemporalAmount amountToSubtract)
  • public ZonedDateTime minusDays(long days)
  • public ZonedDateTime minusHours(long hours)
  • public ZonedDateTime minusMinutes(long minutes)
  • public ZonedDateTime minusMonths(long months)
  • public ZonedDateTime minusNanos(long nanos)
  • public ZonedDateTime minusSeconds(long seconds)
  • public ZonedDateTime minusWeeks(long weeks)
  • public ZonedDateTime minusYears(long years)
  • public static ZonedDateTime now()
  • public static ZonedDateTime now(Clock clock)
  • public static ZonedDateTime now(ZoneId zone)
  • public static ZonedDateTime of(
      int year,
      int month,
      int dayOfMonth,
      int hour,
      int minute,
      int second,
      int nanoOfSecond,
     ZoneId zone)
  • public static ZonedDateTime of(
     LocalDate date, LocalTime time, ZoneId zone)
  • public static ZonedDateTime of(
     LocalDateTime localDateTime, ZoneId zone)
  • public static ZonedDateTime ofInstant(
     Instant instant, ZoneId zone)
  • public static ZonedDateTime ofInstant(
      LocalDateTime localDateTime,
     ZoneOffset offset,
     ZoneId zone)
  • public static ZonedDateTime ofLocal(
      LocalDateTime localDateTime,
     ZoneId zone,
     ZoneOffset preferredOffset)
  • public static ZonedDateTime ofStrict(
      LocalDateTime localDateTime,
     ZoneOffset offset,
     ZoneId zone)
  • public static ZonedDateTime parse(CharSequence text)
  • public static ZonedDateTime parse(
     CharSequence text, DateTimeFormatter formatter)
  • public ZonedDateTime plus(
     long amountToAdd, TemporalUnit unit)
  • public ZonedDateTime plus(
     TemporalAmount amountToAdd)
  • public ZonedDateTime plusDays(long days) 增加指定天数
  • public ZonedDateTime plusHours(long hours) 增加指定小时数
  • public ZonedDateTime plusMinutes(long minutes) 增加指定分钟数
  • public ZonedDateTime plusMonths(long months) 增加指定月数
  • public ZonedDateTime plusNanos(long nanos) 增加指定纳秒数
  • public ZonedDateTime plusSeconds(long seconds) 增加指定秒数
  • public ZonedDateTime plusWeeks(long weeks) 增加指定周数
  • public ZonedDateTime plusYears(long years) 增加指定年数
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public LocalDate toLocalDate()
  • public LocalDateTime toLocalDateTime()
  • public LocalTime toLocalTime()
  • public OffsetDateTime toOffsetDateTime() 转换为 OffsetDateTime
  • public String toString()
  • public ZonedDateTime truncatedTo(TemporalUnit unit) 截断到指定的单位
  • public long until(
     Temporal endExclusive, TemporalUnit unit)
  • public ZonedDateTime with(TemporalAdjuster adjuster) 使用时间调整器修改
  • public ZonedDateTime with(
     TemporalField field, long newValue)
  • public ZonedDateTime withDayOfMonth(int dayOfMonth) 设置月份中的天数
  • public ZonedDateTime withDayOfYear(int dayOfYear) 设置一年中的天数
  • public ZonedDateTime withEarlierOffsetAtOverlap() 在重叠时间段选择较早的偏移量
  • public ZonedDateTime withFixedOffsetZone() 设置固定偏移时区
  • public ZonedDateTime withHour(int hour) 设置小时
  • public ZonedDateTime withLaterOffsetAtOverlap() 在重叠时间段选择较晚的偏移量
  • public ZonedDateTime withMinute(int minute) 设置分钟
  • public ZonedDateTime withMonth(int month) 设置月份
  • public ZonedDateTime withNano(int nanoOfSecond) 设置纳秒
  • public ZonedDateTime withSecond(int second) 设置秒
  • public ZonedDateTime withYear(int year) 设置年份
  • public ZonedDateTime withZoneSameInstant(
     ZoneId zone) 保持时刻不变,更改时区
  • public ZonedDateTime withZoneSameLocal(ZoneId zone) 保持本地时间不变,更改时区

完全实现的类。
 

java.time.chrono
参见自定义

 AbstractChronology 抽象纪年法


  • protected AbstractChronology()
  • public int compareTo(Chronology other) 与另一个纪年法比较
  • public boolean equals(Object obj)
  • public int hashCode()
  • public ChronoLocalDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public String toString()

完全实现的类。
 

java.time.chrono
参见自定义

 ChronoLocalDate


  • public Temporal adjustInto(Temporal temporal)
  • public ChronoLocalDateTime atTime(
     LocalTime localTime) 组合LocalTime形成ChronoLocalDateTime
  • public int compareTo(ChronoLocalDate other)
  • public abstract boolean equals(Object p0) 判断是否相等
  • public String format(DateTimeFormatter formatter)
  • public static ChronoLocalDate from(
     TemporalAccessor temporal)
  • public abstract Chronology getChronology() 获取纪年法
  • public Era getEra() 获取纪元
  • public abstract int hashCode() 获取哈希码
  • public boolean isAfter(ChronoLocalDate other)
  • public boolean isBefore(ChronoLocalDate other)
  • public boolean isEqual(ChronoLocalDate other)
  • public boolean isLeapYear()
  • public boolean isSupported(TemporalField field)
  • public boolean isSupported(TemporalUnit unit)
  • public abstract int lengthOfMonth() 获取月份长度
  • public int lengthOfYear()
  • public ChronoLocalDate minus(
     long amountToSubtract, TemporalUnit unit)
  • public ChronoLocalDate minus(TemporalAmount amount) 减去指定时间量
  • public ChronoLocalDate plus(
     long amountToAdd, TemporalUnit unit)
  • public ChronoLocalDate plus(TemporalAmount amount) 增加指定时间量
  • public Object query(TemporalQuery query)
  • public static java.util.Comparator timeLineOrder()
  • public long toEpochDay()
  • public abstract String toString() 转换为字符串
  • public abstract long until(
     Temporal p0, TemporalUnit p1) 计算到另一个时间点的时间跨度
  • public abstract ChronoPeriod until(
     ChronoLocalDate p0) 计算到另一个ChronoLocalDate的时间跨度
  • public ChronoLocalDate with(
     TemporalAdjuster adjuster)
  • public ChronoLocalDate with(
     TemporalField field, long newValue)

完全实现的类。
 

java.time.chrono
参见自定义

 ChronoLocalDateTime


  • public Temporal adjustInto(Temporal temporal)
  • public abstract ChronoZonedDateTime atZone(
     ZoneId p0) 组合ZoneId形成ChronoZonedDateTime
  • public int compareTo(ChronoLocalDateTime other)
  • public abstract boolean equals(Object p0) 判断是否相等
  • public String format(DateTimeFormatter formatter)
  • public static ChronoLocalDateTime from(
     TemporalAccessor temporal)
  • public Chronology getChronology() 获取纪年法
  • public abstract int hashCode() 获取哈希码
  • public boolean isAfter(ChronoLocalDateTime other)
  • public boolean isBefore(ChronoLocalDateTime other)
  • public boolean isEqual(ChronoLocalDateTime other)
  • public abstract boolean isSupported(
     TemporalField p0) 是否支持指定的TemporalField
  • public boolean isSupported(TemporalUnit unit)
  • public ChronoLocalDateTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public ChronoLocalDateTime minus(
     TemporalAmount amount) 减去指定时间量
  • public abstract ChronoLocalDateTime plus(
     long p0, TemporalUnit p1) 增加指定时间量
  • public ChronoLocalDateTime plus(
     TemporalAmount amount) 减去指定时间量
  • public Object query(TemporalQuery query)
  • public static java.util.Comparator timeLineOrder()
  • public long toEpochSecond(ZoneOffset offset) 转换为自纪元以来的秒数
  • public Instant toInstant(ZoneOffset offset) 转换为Instant
  • public abstract ChronoLocalDate toLocalDate() 转换为ChronoLocalDate
  • public abstract LocalTime toLocalTime() 转换为LocalTime
  • public abstract String toString() 转换为字符串
  • public ChronoLocalDateTime with(
     TemporalAdjuster adjuster)
  • public abstract ChronoLocalDateTime with(
     TemporalField p0, long p1) 设置指定的TemporalField的值

完全实现的类。
 

java.time.chrono
参见自定义

 ChronoPeriod


  • public abstract Temporal addTo(Temporal p0) 添加到另一个Temporal对象
  • public static ChronoPeriod between(
      ChronoLocalDate startDateInclusive,
      ChronoLocalDate endDateExclusive) 计算两个ChronoLocalDate之间的时间跨度
  • public abstract boolean equals(Object p0) 判断是否相等
  • public abstract long get(TemporalUnit p0) 获取指定单位的值
  • public abstract Chronology getChronology() 获取纪年法
  • public abstract java.util.List getUnits() 获取所有单位的列表
  • public abstract int hashCode() 获取哈希码
  • public boolean isNegative()
  • public boolean isZero()
  • public abstract ChronoPeriod minus(
     TemporalAmount p0) 减去指定时间量
  • public abstract ChronoPeriod multipliedBy(int p0) 乘以一个整数
  • public ChronoPeriod negated() 取反
  • public abstract ChronoPeriod normalized() 标准化
  • public abstract ChronoPeriod plus(TemporalAmount p0) 增加指定时间量
  • public abstract Temporal subtractFrom(Temporal p0) 从另一个Temporal对象中减去
  • public abstract String toString() 转换为字符串

完全实现的类。
 

java.time.chrono
参见自定义

 ChronoZonedDateTime


  • public int compareTo(ChronoZonedDateTime other) 与另一个ChronoZonedDateTime比较
  • public abstract boolean equals(Object p0) 判断是否相等
  • public String format(DateTimeFormatter formatter)
  • public static ChronoZonedDateTime from(
     TemporalAccessor temporal)
  • public int get(TemporalField field)
  • public Chronology getChronology() 获取纪年法
  • public long getLong(TemporalField field)
  • public abstract ZoneOffset getOffset() 获取偏移量
  • public abstract ZoneId getZone()
  • public abstract int hashCode() 获取哈希码
  • public boolean isAfter(ChronoZonedDateTime other) 是否晚于另一个ChronoZonedDateTime
  • public boolean isBefore(ChronoZonedDateTime other) 是否早于另一个ChronoZonedDateTime
  • public boolean isEqual(ChronoZonedDateTime other) 是否等于另一个ChronoZonedDateTime
  • public abstract boolean isSupported(
     TemporalField p0) 是否支持指定的TemporalField
  • public boolean isSupported(TemporalUnit unit)
  • public ChronoZonedDateTime minus(
     long amountToSubtract, TemporalUnit unit)
  • public ChronoZonedDateTime minus(
     TemporalAmount amount) 减去指定时间量
  • public abstract ChronoZonedDateTime plus(
     long p0, TemporalUnit p1) 增加指定时间量
  • public ChronoZonedDateTime plus(
     TemporalAmount amount) 减去指定时间量
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)
  • public static java.util.Comparator timeLineOrder()
  • public long toEpochSecond()
  • public Instant toInstant()
  • public ChronoLocalDate toLocalDate() 转换为ChronoLocalDate
  • public abstract ChronoLocalDateTime toLocalDateTime() 转换为ChronoLocalDateTime
  • public LocalTime toLocalTime()
  • public abstract String toString() 转换为字符串
  • public ChronoZonedDateTime with(
     TemporalAdjuster adjuster)
  • public abstract ChronoZonedDateTime with(
     TemporalField p0, long p1) 设置指定的TemporalField的值
  • public abstract ChronoZonedDateTime withEarlierOffsetAtOverlap() 在重叠时间段选择较早的偏移量
  • public abstract ChronoZonedDateTime withLaterOffsetAtOverlap() 在重叠时间段选择较晚的偏移量
  • public abstract ChronoZonedDateTime withZoneSameInstant(
     ZoneId p0) 组合ZoneId形成ChronoZonedDateTime
  • public abstract ChronoZonedDateTime withZoneSameLocal(
     ZoneId p0) 组合ZoneId形成ChronoZonedDateTime

完全实现的类。
 

java.time.chrono
参见自定义

 Chronology 纪年法


  • public abstract int compareTo(Chronology p0) 与另一个纪年法比较
  • public abstract ChronoLocalDate date(
     int p0, int p1, int p2) 创建一个ChronoLocalDate
  • public ChronoLocalDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • public abstract ChronoLocalDate date(
     TemporalAccessor p0)
  • public abstract ChronoLocalDate dateEpochDay(
     long p0) 根据纪元日创建ChronoLocalDate
  • public ChronoLocalDate dateNow() 获取当前日期
  • public ChronoLocalDate dateNow(Clock clock) 使用指定时钟获取当前日期
  • public ChronoLocalDate dateNow(ZoneId zone) 使用指定时区获取当前日期
  • public abstract ChronoLocalDate dateYearDay(
     int p0, int p1) 根据年份和一年中的天数创建ChronoLocalDate
  • public ChronoLocalDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • public abstract boolean equals(Object p0) 判断是否相等
  • public abstract Era eraOf(int p0) 获取指定纪元值对应的纪元
  • public abstract java.util.List eras() 获取所有纪元的列表
  • public static Chronology from(
     TemporalAccessor temporal)
  • public static java.util.Set getAvailableChronologies() 获取所有可用的纪年法
  • public abstract String getCalendarType() 获取日历类型
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public abstract String getId()
  • public abstract int hashCode() 获取哈希码
  • public abstract boolean isLeapYear(long p0) 是否闰年
  • public ChronoLocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public static Chronology of(String id) 根据ID获取纪年法
  • public static Chronology ofLocale(
     java.util.Locale locale) 根据Locale获取纪年法
  • public ChronoPeriod period(
     int years, int months, int days)
  • public abstract int prolepticYear(Era p0, int p1) 获取儒略历年份
  • public abstract ValueRange range(ChronoField p0) 获取ChronoField的值范围
  • public abstract ChronoLocalDate resolveDate(
     java.util.Map p0, ResolverStyle p1) 解析日期
  • public abstract String toString() 转换为字符串
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 Era


  • public Temporal adjustInto(Temporal temporal)
  • public int get(TemporalField field)
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public long getLong(TemporalField field)
  • public abstract int getValue() 获取值
  • public boolean isSupported(TemporalField field)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)

完全实现的类。
 

java.time.chrono
参见自定义

 HijrahChronology 伊斯兰历纪年法


  • public static final HijrahChronology INSTANCE
  • public HijrahDate date(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public HijrahDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • public HijrahDate date(TemporalAccessor temporal) 从TemporalAccessor创建HijrahDate
  • public HijrahDate dateEpochDay(long epochDay) 根据纪元日创建HijrahDate
  • public HijrahDate dateNow() 获取当前HijrahDate
  • public HijrahDate dateNow(Clock clock) 使用指定时钟获取当前HijrahDate
  • public HijrahDate dateNow(ZoneId zone) 使用指定时区获取当前HijrahDate
  • public HijrahDate dateYearDay(
     int prolepticYear, int dayOfYear) 根据年份和一年中的天数创建HijrahDate
  • public HijrahDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • public HijrahEra eraOf(int eraValue) 获取指定纪元值对应的HijrahEra
  • public java.util.List eras() 获取所有HijrahEra的列表
  • public String getCalendarType() 获取日历类型
  • public String getId()
  • public boolean isLeapYear(long prolepticYear) 是否闰年
  • public ChronoLocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public int prolepticYear(Era era, int yearOfEra) 获取儒略历年份
  • public ValueRange range(ChronoField field) 获取ChronoField的值范围
  • public HijrahDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 HijrahDate


  • public final ChronoLocalDateTime atTime(
     LocalTime localTime) 组合LocalTime形成ChronoLocalDateTime
  • public boolean equals(Object obj)
  • public static HijrahDate from(
     TemporalAccessor temporal)
  • public HijrahChronology getChronology() 获取HijrahChronology
  • public HijrahEra getEra() 获取HijrahEra
  • public long getLong(TemporalField field)
  • public int hashCode()
  • public boolean isLeapYear()
  • public int lengthOfMonth()
  • public int lengthOfYear()
  • public HijrahDate minus(
     long amountToSubtract, TemporalUnit unit)
  • public HijrahDate minus(TemporalAmount amount) 减去指定时间量
  • public static HijrahDate now() 获取当前HijrahDate
  • public static HijrahDate now(Clock clock) 使用指定时钟获取当前HijrahDate
  • public static HijrahDate now(ZoneId zone) 使用指定时区获取当前HijrahDate
  • public static HijrahDate of(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public HijrahDate plus(
     long amountToAdd, TemporalUnit unit)
  • public HijrahDate plus(TemporalAmount amount) 增加指定时间量
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public ChronoPeriod until(ChronoLocalDate endDate) 计算到另一个ChronoLocalDate的时间跨度
  • public HijrahDate with(TemporalAdjuster adjuster) 使用时间调整器修改
  • public HijrahDate with(
     TemporalField field, long newValue)
  • public HijrahDate withVariant(
     HijrahChronology chronology)

完全实现的类。
 

java.time.chrono
参见自定义

 HijrahEra 伊斯兰历纪元


  • public static final HijrahEra AH
  • public int getValue()
  • public static HijrahEra of(int hijrahEra) 获取指定纪元值对应的HijrahEra
  • public ValueRange range(TemporalField field)
  • public static HijrahEra valueOf(String name) 获取指定名称对应的HijrahEra
  • public static HijrahEra[] values() 获取所有HijrahEra的数组

部分 Android T 中提供的 方法(1) 不受支持。

java.time.chrono
参见自定义

 IsoChronology ISO-8601 纪年法


  • public static final IsoChronology INSTANCE
  • public LocalDate date(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public LocalDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • public LocalDate date(TemporalAccessor temporal) 从TemporalAccessor创建LocalDate
  • public LocalDate dateEpochDay(long epochDay) 根据纪元日创建LocalDate
  • public LocalDate dateNow() 获取当前LocalDate
  • public LocalDate dateNow(Clock clock) 使用指定时钟获取当前LocalDate
  • public LocalDate dateNow(ZoneId zone) 使用指定时区获取当前LocalDate
  • public LocalDate dateYearDay(
     int prolepticYear, int dayOfYear) 根据年份和一年中的天数创建HijrahDate
  • public LocalDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • public IsoEra eraOf(int eraValue) 获取指定纪元值对应的IsoEra
  • public java.util.List eras() 获取所有HijrahEra的列表
  • public String getCalendarType() 获取日历类型
  • public String getId()
  • public boolean isLeapYear(long prolepticYear) 是否闰年
  • public LocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public Period period(
     int years, int months, int days)
  • public int prolepticYear(Era era, int yearOfEra) 获取儒略历年份
  • public ValueRange range(ChronoField field) 获取ChronoField的值范围
  • public LocalDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public ZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 IsoEra ISO-8601 纪元


  • public static final IsoEra BCE
  • public static final IsoEra CE
  • public int getValue()
  • public static IsoEra of(int isoEra) 获取指定纪元值对应的IsoEra
  • public static IsoEra valueOf(String name) 获取指定名称对应的IsoEra
  • public static IsoEra[] values() 获取所有IsoEra的数组

完全实现的类。
 

java.time.chrono
参见自定义

 JapaneseChronology 日本纪年法


  • public static final JapaneseChronology INSTANCE
  • public JapaneseDate date(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public JapaneseDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • public JapaneseDate date(TemporalAccessor temporal) 从TemporalAccessor创建JapaneseDate
  • public JapaneseDate dateEpochDay(long epochDay) 根据纪元日创建JapaneseDate
  • public JapaneseDate dateNow() 获取当前JapaneseDate
  • public JapaneseDate dateNow(Clock clock) 使用指定时钟获取当前JapaneseDate
  • public JapaneseDate dateNow(ZoneId zone) 使用指定时区获取当前JapaneseDate
  • public JapaneseDate dateYearDay(
     int prolepticYear, int dayOfYear) 根据年份和一年中的天数创建HijrahDate
  • public JapaneseDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • public JapaneseEra eraOf(int eraValue) 获取指定纪元值对应的JapaneseEra
  • public java.util.List eras() 获取所有HijrahEra的列表
  • public String getCalendarType() 获取日历类型
  • public String getId()
  • public boolean isLeapYear(long prolepticYear) 是否闰年
  • public ChronoLocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public int prolepticYear(Era era, int yearOfEra) 获取儒略历年份
  • public ValueRange range(ChronoField field) 获取ChronoField的值范围
  • public JapaneseDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 JapaneseDate


  • public final ChronoLocalDateTime atTime(
     LocalTime localTime) 组合LocalTime形成ChronoLocalDateTime
  • public boolean equals(Object obj)
  • public static JapaneseDate from(
     TemporalAccessor temporal)
  • public JapaneseChronology getChronology() 获取JapaneseChronology
  • public JapaneseEra getEra() 获取JapaneseEra
  • public long getLong(TemporalField field)
  • public int hashCode()
  • public boolean isSupported(TemporalField field)
  • public int lengthOfMonth()
  • public int lengthOfYear()
  • public JapaneseDate minus(
     long amountToAdd, TemporalUnit unit)
  • public JapaneseDate minus(TemporalAmount amount) 减去指定时间量
  • public static JapaneseDate now() 获取当前JapaneseDate
  • public static JapaneseDate now(Clock clock) 使用指定时钟获取当前JapaneseDate
  • public static JapaneseDate now(ZoneId zone) 使用指定时区获取当前JapaneseDate
  • public static JapaneseDate of(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public static JapaneseDate of(
      JapaneseEra era,
      int yearOfEra,
      int month,
      int dayOfMonth)
  • public JapaneseDate plus(
     long amountToAdd, TemporalUnit unit)
  • public JapaneseDate plus(TemporalAmount amount) 增加指定时间量
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public ChronoPeriod until(ChronoLocalDate endDate) 计算到另一个ChronoLocalDate的时间跨度
  • public JapaneseDate with(TemporalAdjuster adjuster) 使用时间调整器修改
  • public JapaneseDate with(
     TemporalField field, long newValue)

完全实现的类。
 

java.time.chrono
参见自定义

 JapaneseEra 日本纪元


  • public static final JapaneseEra HEISEI
  • public static final JapaneseEra MEIJI
  • public static final JapaneseEra SHOWA
  • public static final JapaneseEra TAISHO
  • public String getDisplayName(
     TextStyle style, java.util.Locale locale)
  • public int getValue()
  • public static JapaneseEra of(int japaneseEra) 获取指定纪元值对应的JapaneseEra
  • public ValueRange range(TemporalField field)
  • public String toString()
  • public static JapaneseEra valueOf(
     String japaneseEra) 获取指定名称对应的JapaneseEra
  • public static JapaneseEra[] values() 获取所有JapaneseEra的数组

完全实现的类。
 

java.time.chrono
参见自定义

 MinguoChronology 民国纪年法


  • public static final MinguoChronology INSTANCE
  • public MinguoDate date(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public MinguoDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • public MinguoDate date(TemporalAccessor temporal) 从TemporalAccessor创建MinguoDate
  • public MinguoDate dateEpochDay(long epochDay) 根据纪元日创建MinguoDate
  • public MinguoDate dateNow() 获取当前MinguoDate
  • public MinguoDate dateNow(Clock clock) 使用指定时钟获取当前MinguoDate
  • public MinguoDate dateNow(ZoneId zone) 使用指定时区获取当前MinguoDate
  • public MinguoDate dateYearDay(
     int prolepticYear, int dayOfYear) 根据年份和一年中的天数创建HijrahDate
  • public MinguoDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • public MinguoEra eraOf(int eraValue) 获取指定纪元值对应的MinguoEra
  • public java.util.List eras() 获取所有HijrahEra的列表
  • public String getCalendarType() 获取日历类型
  • public String getId()
  • public boolean isLeapYear(long prolepticYear) 是否闰年
  • public ChronoLocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public int prolepticYear(Era era, int yearOfEra) 获取儒略历年份
  • public ValueRange range(ChronoField field) 获取ChronoField的值范围
  • public MinguoDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 MinguoDate


  • public final ChronoLocalDateTime atTime(
     LocalTime localTime) 组合LocalTime形成ChronoLocalDateTime
  • public boolean equals(Object obj)
  • public static MinguoDate from(
     TemporalAccessor temporal)
  • public MinguoChronology getChronology() 获取MinguoChronology
  • public MinguoEra getEra() 获取MinguoEra
  • public long getLong(TemporalField field)
  • public int hashCode()
  • public int lengthOfMonth()
  • public MinguoDate minus(
     long amountToAdd, TemporalUnit unit)
  • public MinguoDate minus(TemporalAmount amount) 减去指定时间量
  • public static MinguoDate now() 获取当前MinguoDate
  • public static MinguoDate now(Clock clock) 使用指定时钟获取当前MinguoDate
  • public static MinguoDate now(ZoneId zone) 使用指定时区获取当前MinguoDate
  • public static MinguoDate of(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • public MinguoDate plus(
     long amountToAdd, TemporalUnit unit)
  • public MinguoDate plus(TemporalAmount amount) 增加指定时间量
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public ChronoPeriod until(ChronoLocalDate endDate) 计算到另一个ChronoLocalDate的时间跨度
  • public MinguoDate with(TemporalAdjuster adjuster) 使用时间调整器修改
  • 公有 MinguoDate with(
     TemporalField field, long newValue)

完全实现的类。
 

java.time.chrono
参见自定义

 中华民国纪元


  • 公有静态最终 MinguoEra BEFORE_ROC
  • 公有静态最终 MinguoEra ROC
  • public int getValue()
  • 公有静态 MinguoEra of(int minguoEra)
  • 公有静态 MinguoEra valueOf(String name)
  • 公有静态 MinguoEra[] values()

部分 Android T 中提供的 方法(1) 不受支持。

java.time.chrono
参见自定义

 泰国佛教纪元


  • 公有静态最终 ThaiBuddhistChronology INSTANCE
  • 公有 ThaiBuddhistDate date(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • 公有 ThaiBuddhistDate date(
     Era era, int yearOfEra, int month, int dayOfMonth) 创建一个ChronoLocalDate
  • 公有 ThaiBuddhistDate date(
     TemporalAccessor temporal)
  • 公有 ThaiBuddhistDate dateEpochDay(long epochDay)
  • 公有 ThaiBuddhistDate dateNow()
  • 公有 ThaiBuddhistDate dateNow(Clock clock)
  • 公有 ThaiBuddhistDate dateNow(ZoneId zone)
  • 公有 ThaiBuddhistDate dateYearDay(
     int prolepticYear, int dayOfYear) 根据年份和一年中的天数创建HijrahDate
  • 公有 ThaiBuddhistDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear) 根据纪元、年份和一年中的天数创建ChronoLocalDate
  • 公有 ThaiBuddhistEra eraOf(int eraValue)
  • public java.util.List eras() 获取所有HijrahEra的列表
  • public String getCalendarType() 获取日历类型
  • public String getId()
  • public boolean isLeapYear(long prolepticYear) 是否闰年
  • public ChronoLocalDateTime localDateTime(
     TemporalAccessor temporal)
  • public int prolepticYear(Era era, int yearOfEra) 获取儒略历年份
  • public ValueRange range(ChronoField field) 获取ChronoField的值范围
  • 公有 ThaiBuddhistDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle) 解析日期
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完全实现的类。
 

java.time.chrono
参见自定义

 泰国佛教日期


  • public final ChronoLocalDateTime atTime(
     LocalTime localTime) 组合LocalTime形成ChronoLocalDateTime
  • public boolean equals(Object obj)
  • 公有静态 ThaiBuddhistDate from(
     TemporalAccessor temporal)
  • 公有 ThaiBuddhistChronology getChronology()
  • 公有 ThaiBuddhistEra getEra()
  • public long getLong(TemporalField field)
  • public int hashCode()
  • public int lengthOfMonth()
  • 公有 ThaiBuddhistDate minus(
     long amountToAdd, TemporalUnit unit)
  • 公有 ThaiBuddhistDate minus(TemporalAmount amount)
  • 公有静态 ThaiBuddhistDate now()
  • 公有静态 ThaiBuddhistDate now(Clock clock)
  • 公有静态 ThaiBuddhistDate now(ZoneId zone)
  • 公有静态 ThaiBuddhistDate of(
     int prolepticYear, int month, int dayOfMonth) 创建HijrahDate
  • 公有 ThaiBuddhistDate plus(
     long amountToAdd, TemporalUnit unit)
  • 公有 ThaiBuddhistDate plus(TemporalAmount amount)
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public ChronoPeriod until(ChronoLocalDate endDate) 计算到另一个ChronoLocalDate的时间跨度
  • 公有 ThaiBuddhistDate with(
     TemporalAdjuster adjuster)
  • 公有 ThaiBuddhistDate with(
     TemporalField field, long newValue)

完全实现的类。
 

java.time.chrono
参见自定义

 泰国佛教纪元


  • 公有静态最终 ThaiBuddhistEra BE
  • 公有静态最终 ThaiBuddhistEra BEFORE_BE
  • public int getValue()
  • 公有静态 ThaiBuddhistEra of(
     int thaiBuddhistEra)
  • 公有静态 ThaiBuddhistEra valueOf(String name)
  • 公有静态 ThaiBuddhistEra[] values()

部分 Android T 中提供的 方法(1) 不受支持。

java.time.format
参见自定义

 DateTimeFormatter


  • 公有静态最终 DateTimeFormatter BASIC_ISO_DATE
  • 公有静态最终 DateTimeFormatter ISO_DATE
  • 公有静态最终 DateTimeFormatter ISO_DATE_TIME
  • 公有静态最终 DateTimeFormatter ISO_INSTANT
  • 公有静态最终 DateTimeFormatter ISO_LOCAL_DATE
  • 公有静态最终 DateTimeFormatter ISO_LOCAL_DATE_TIME
  • 公有静态最终 DateTimeFormatter ISO_LOCAL_TIME
  • 公有静态最终 DateTimeFormatter ISO_OFFSET_DATE
  • 公有静态最终 DateTimeFormatter ISO_OFFSET_DATE_TIME
  • 公有静态最终 DateTimeFormatter ISO_OFFSET_TIME
  • 公有静态最终 DateTimeFormatter ISO_ORDINAL_DATE
  • 公有静态最终 DateTimeFormatter ISO_TIME
  • 公有静态最终 DateTimeFormatter ISO_WEEK_DATE
  • 公有静态最终 DateTimeFormatter ISO_ZONED_DATE_TIME
  • 公有静态最终 DateTimeFormatter RFC_1123_DATE_TIME
  • 公有 String format(TemporalAccessor temporal)
  • 公有 void formatTo(
     TemporalAccessor temporal, Appendable appendable)
  • public Chronology getChronology() 获取纪年法
  • 公有 DecimalStyle getDecimalStyle()
  • 公有 java.util.Locale getLocale()
  • 公有 java.util.Set getResolverFields()
  • 公有 ResolverStyle getResolverStyle()
  • public ZoneId getZone()
  • 公有静态 DateTimeFormatter ofLocalizedDate(
     FormatStyle dateStyle)
  • 公有静态 DateTimeFormatter ofLocalizedDateTime(
     FormatStyle dateTimeStyle)
  • 公有静态 DateTimeFormatter ofLocalizedDateTime(
     FormatStyle dateStyle, FormatStyle timeStyle)
  • 公有静态 DateTimeFormatter ofLocalizedTime(
     FormatStyle timeStyle)
  • 公有静态 DateTimeFormatter ofPattern(
     String pattern)
  • 公有静态 DateTimeFormatter ofPattern(
     String pattern, java.util.Locale locale)
  • 公有 Object parse(
     CharSequence text, TemporalQuery query)
  • 公有 TemporalAccessor parse(CharSequence text)
  • 公有 TemporalAccessor parse(
      CharSequence text,
     java.text.ParsePosition position)
  • 公有 TemporalAccessor parseBest(
     CharSequence text, TemporalQuery[] queries)
  • 公有 TemporalAccessor parseUnresolved(
      CharSequence text,
     java.text.ParsePosition position)
  • 公有静态最终 TemporalQuery parsedExcessDays()
  • 公有静态最终 TemporalQuery parsedLeapSecond()
  • 公有 java.text.Format toFormat()
  • 公有 java.text.Format toFormat(
     TemporalQuery parseQuery)
  • public String toString()
  • 公有 DateTimeFormatter withChronology(
     Chronology chrono)
  • 公有 DateTimeFormatter withDecimalStyle(
     DecimalStyle decimalStyle)
  • 公有 DateTimeFormatter withLocale(
     java.util.Locale locale) 根据Locale获取纪年法
  • 公有 DateTimeFormatter withResolverFields(
     java.util.Set resolverFields)
  • 公有 DateTimeFormatter withResolverFields(
     TemporalField[] resolverFields)
  • 公有 DateTimeFormatter withResolverStyle(
     ResolverStyle resolverStyle)
  • 公有 DateTimeFormatter withZone(ZoneId zone)

完全实现的类。
 

java.time.format
参见自定义

 DateTimeFormatterBuilder


  • 公有 DateTimeFormatterBuilder()
  • 公有 DateTimeFormatterBuilder append(
     DateTimeFormatter formatter)
  • 公有 DateTimeFormatterBuilder appendChronologyId()
  • 公有 DateTimeFormatterBuilder appendChronologyText(
     TextStyle textStyle)
  • 公有 DateTimeFormatterBuilder appendFraction(
      TemporalField field,
     int minWidth,
     int maxWidth,
     boolean decimalPoint)
  • 公有 DateTimeFormatterBuilder appendInstant()
  • 公有 DateTimeFormatterBuilder appendInstant(
     int fractionalDigits)
  • 公有 DateTimeFormatterBuilder appendLiteral(
     char literal)
  • 公有 DateTimeFormatterBuilder appendLiteral(
     String literal)
  • 公有 DateTimeFormatterBuilder appendLocalized(
     FormatStyle dateStyle, FormatStyle timeStyle)
  • 公有 DateTimeFormatterBuilder appendLocalizedOffset(
     TextStyle style)
  • 公有 DateTimeFormatterBuilder appendOffset(
     String pattern, String noOffsetText)
  • 公有 DateTimeFormatterBuilder appendOffsetId()
  • 公有 DateTimeFormatterBuilder appendOptional(
     DateTimeFormatter formatter)
  • 公有 DateTimeFormatterBuilder appendPattern(
     String pattern)
  • 公有 DateTimeFormatterBuilder appendText(
     TemporalField field)
  • 公有 DateTimeFormatterBuilder appendText(
     TemporalField field, TextStyle textStyle)
  • 公有 DateTimeFormatterBuilder appendText(
     TemporalField field, java.util.Map textLookup)
  • 公有 DateTimeFormatterBuilder appendValue(
     TemporalField field)
  • 公有 DateTimeFormatterBuilder appendValue(
     TemporalField field, int width)
  • 公有 DateTimeFormatterBuilder appendValue(
      TemporalField field,
     int minWidth,
     int maxWidth,
     SignStyle signStyle)
  • 公有 DateTimeFormatterBuilder appendValueReduced(
      TemporalField field,
     int width,
     int maxWidth,
     int baseValue)
  • 公有 DateTimeFormatterBuilder appendValueReduced(
      TemporalField field,
     int width,
     int maxWidth,
     ChronoLocalDate baseDate)
  • 公有 DateTimeFormatterBuilder appendZoneId()
  • 公有 DateTimeFormatterBuilder appendZoneOrOffsetId()
  • 公有 DateTimeFormatterBuilder appendZoneRegionId()
  • 公有 DateTimeFormatterBuilder appendZoneText(
     TextStyle textStyle)
  • 公有 DateTimeFormatterBuilder appendZoneText(
     TextStyle textStyle, java.util.Set preferredZones)
  • 公有静态 String getLocalizedDateTimePattern(
      FormatStyle dateStyle,
     FormatStyle timeStyle,
     Chronology chrono,
     java.util.Locale locale)
  • 公有 DateTimeFormatterBuilder optionalEnd()
  • 公有 DateTimeFormatterBuilder optionalStart()
  • 公有 DateTimeFormatterBuilder padNext(
     int padWidth)
  • 公有 DateTimeFormatterBuilder padNext(
     int padWidth, char padChar)
  • 公有 DateTimeFormatterBuilder parseCaseInsensitive()
  • 公有 DateTimeFormatterBuilder parseCaseSensitive()
  • 公有 DateTimeFormatterBuilder parseDefaulting(
     TemporalField field, long value)
  • 公有 DateTimeFormatterBuilder parseLenient()
  • 公有 DateTimeFormatterBuilder parseStrict()
  • 公有 DateTimeFormatter toFormatter()
  • 公有 DateTimeFormatter toFormatter(
     java.util.Locale locale) 根据Locale获取纪年法

完全实现的类。
 

java.time.format
参见自定义

 DateTimeParseException


  • 公有 DateTimeParseException(
      String message,
     CharSequence parsedData,
     int errorIndex)
  • 公有 DateTimeParseException(
      String message,
     CharSequence parsedData,
     int errorIndex,
     Throwable cause)
  • 公有 int getErrorIndex()
  • 公有 String getParsedString()

完全实现的类。
 

java.time.format
参见自定义

 DecimalStyle


  • 公有静态最终 DecimalStyle STANDARD
  • public boolean equals(Object obj)
  • 公有静态 java.util.Set getAvailableLocales()
  • 公有 char getDecimalSeparator()
  • 公有 char getNegativeSign()
  • 公有 char getPositiveSign()
  • 公有 char getZeroDigit()
  • public int hashCode()
  • 公有静态 DecimalStyle of(
     java.util.Locale locale) 根据Locale获取纪年法
  • 公有静态 DecimalStyle ofDefaultLocale()
  • public String toString()
  • 公有 DecimalStyle withDecimalSeparator(
     char decimalSeparator)
  • 公有 DecimalStyle withNegativeSign(
     char negativeSign)
  • 公有 DecimalStyle withPositiveSign(
     char positiveSign)
  • 公有 DecimalStyle withZeroDigit(char zeroDigit)

完全实现的类。
 

java.time.format
参见自定义

 FormatStyle


  • 公有静态最终 FormatStyle FULL
  • 公有静态最终 FormatStyle LONG
  • 公有静态最终 FormatStyle MEDIUM
  • 公有静态最终 FormatStyle SHORT
  • 公有静态 FormatStyle valueOf(String name)
  • 公有静态 FormatStyle[] values()

完全实现的类。
 

java.time.format
参见自定义

 ResolverStyle


  • 公有静态最终 ResolverStyle LENIENT
  • 公有静态最终 ResolverStyle SMART
  • 公有静态最终 ResolverStyle STRICT
  • 公有静态 ResolverStyle valueOf(String name)
  • 公有静态 ResolverStyle[] values()

完全实现的类。
 

java.time.format
参见自定义

 SignStyle


  • 公有静态最终 SignStyle ALWAYS
  • 公有静态最终 SignStyle EXCEEDS_PAD
  • 公有静态最终 SignStyle NEVER
  • 公有静态最终 SignStyle NORMAL
  • 公有静态最终 SignStyle NOT_NEGATIVE
  • 公有静态 SignStyle valueOf(String name)
  • 公有静态 SignStyle[] values()

完全实现的类。
 

java.time.format
参见自定义

 TextStyle


  • 公有静态最终 TextStyle FULL
  • 公有静态最终 TextStyle FULL_STANDALONE
  • 公有静态最终 TextStyle NARROW
  • 公有静态最终 TextStyle NARROW_STANDALONE
  • 公有静态最终 TextStyle SHORT
  • 公有静态最终 TextStyle SHORT_STANDALONE
  • 公有 TextStyle asNormal()
  • 公有 TextStyle asStandalone()
  • 公有 boolean isStandalone()
  • 公有静态 TextStyle valueOf(String name)
  • 公有静态 TextStyle[] values()

完全实现的类。
 

java.time.temporal
参见自定义

 ChronoField


  • 公有静态最终 ChronoField ALIGNED_DAY_OF_WEEK_IN_MONTH
  • 公有静态最终 ChronoField ALIGNED_DAY_OF_WEEK_IN_YEAR
  • 公有静态最终 ChronoField ALIGNED_WEEK_OF_MONTH
  • 公有静态最终 ChronoField ALIGNED_WEEK_OF_YEAR
  • 公有静态最终 ChronoField AMPM_OF_DAY
  • 公有静态最终 ChronoField CLOCK_HOUR_OF_AMPM
  • 公有静态最终 ChronoField CLOCK_HOUR_OF_DAY
  • 公有静态最终 ChronoField DAY_OF_MONTH
  • 公有静态最终 ChronoField DAY_OF_WEEK
  • 公有静态最终 ChronoField DAY_OF_YEAR
  • 公有静态最终 ChronoField EPOCH_DAY
  • 公有静态最终 ChronoField ERA
  • 公有静态最终 ChronoField HOUR_OF_AMPM
  • 公有静态最终 ChronoField HOUR_OF_DAY
  • 公有静态最终 ChronoField INSTANT_SECONDS
  • 公有静态最终 ChronoField MICRO_OF_DAY
  • 公有静态最终 ChronoField MICRO_OF_SECOND
  • 公有静态最终 ChronoField MILLI_OF_DAY
  • 公有静态最终 ChronoField MILLI_OF_SECOND
  • 公有静态最终 ChronoField MINUTE_OF_DAY
  • 公有静态最终 ChronoField MINUTE_OF_HOUR
  • 公有静态最终 ChronoField MONTH_OF_YEAR
  • 公有静态最终 ChronoField NANO_OF_DAY
  • 公有静态最终 ChronoField NANO_OF_SECOND
  • 公有静态最终 ChronoField OFFSET_SECONDS
  • 公有静态最终 ChronoField PROLEPTIC_MONTH
  • 公有静态最终 ChronoField SECOND_OF_DAY
  • 公有静态最终 ChronoField SECOND_OF_MINUTE
  • 公有静态最终 ChronoField YEAR
  • 公有静态最终 ChronoField YEAR_OF_ERA
  • 公有 Temporal adjustInto(
     Temporal temporal, long newValue)
  • 公有 int checkValidIntValue(long value)
  • 公有 long checkValidValue(long value)
  • 公有 TemporalUnit getBaseUnit()
  • public String getDisplayName(
     java.util.Locale locale) 根据Locale获取纪年法
  • 公有 long getFrom(TemporalAccessor temporal)
  • 公有 TemporalUnit getRangeUnit()
  • 公有 boolean isDateBased()
  • 公有 boolean isSupportedBy(
     TemporalAccessor temporal)
  • 公有 boolean isTimeBased()
  • 公有 ValueRange range()
  • 公有 ValueRange rangeRefinedBy(
     TemporalAccessor temporal)
  • public String toString()
  • 公有静态 ChronoField valueOf(String name)
  • 公有静态 ChronoField[] values()

完全实现的类。
 

java.time.temporal
参见自定义

 ChronoUnit


  • 公有静态最终 ChronoUnit CENTURIES
  • 公有静态最终 ChronoUnit DAYS
  • 公有静态最终 ChronoUnit DECADES
  • 公有静态最终 ChronoUnit ERAS
  • 公有静态最终 ChronoUnit FOREVER
  • 公有静态最终 ChronoUnit HALF_DAYS
  • 公有静态最终 ChronoUnit HOURS
  • 公有静态最终 ChronoUnit MICROS
  • 公有静态最终 ChronoUnit MILLENNIA
  • 公有静态最终 ChronoUnit MILLIS
  • 公有静态最终 ChronoUnit MINUTES
  • 公有静态最终 ChronoUnit MONTHS
  • 公有静态最终 ChronoUnit NANOS
  • 公有静态最终 ChronoUnit SECONDS
  • 公有静态最终 ChronoUnit WEEKS
  • 公有静态最终 ChronoUnit YEARS
  • 公有 Temporal addTo(
     Temporal temporal, long amount)
  • 公有 long between(
      Temporal temporal1Inclusive,
     Temporal temporal2Exclusive)
  • 公有 Duration getDuration()
  • 公有 boolean isDateBased()
  • 公有 boolean isDurationEstimated()
  • 公有 boolean isSupportedBy(Temporal temporal)
  • 公有 boolean isTimeBased()
  • public String toString()
  • 公有静态 ChronoUnit valueOf(String name)
  • 公有静态 ChronoUnit[] values()

完全实现的类。
 

java.time.temporal
参见自定义

 IsoFields


  • public static final TemporalField DAY_OF_QUARTER 季度天数
  • public static final TemporalField QUARTER_OF_YEAR 年份季度
  • public static final TemporalUnit QUARTER_YEARS 季度
  • public static final TemporalField WEEK_BASED_YEAR 基于周的年份
  • public static final TemporalUnit WEEK_BASED_YEARS 基于周的年数
  • public static final TemporalField WEEK_OF_WEEK_BASED_YEAR 基于周的年份周数

完全实现的类。
 

java.time.temporal
参见自定义

 JulianFields


  • public static final TemporalField JULIAN_DAY 儒略日
  • public static final TemporalField MODIFIED_JULIAN_DAY 修正儒略日
  • public static final TemporalField RATA_DIE 自公元前4713年1月1日以来的天数

完全实现的类。
 

java.time.temporal
参见自定义

 Temporal


  • public abstract boolean isSupported(TemporalUnit p0) 支持时间单位
  • public Temporal minus(
     long amountToSubtract, TemporalUnit unit)
  • public Temporal minus(TemporalAmount amount) 减去时间量
  • public abstract Temporal plus(
     long p0, TemporalUnit p1) 增加指定时间量
  • public Temporal plus(TemporalAmount amount) 增加时间量
  • public abstract long until(
     Temporal p0, TemporalUnit p1) 计算到另一个时间点的时间跨度
  • public Temporal with(TemporalAdjuster adjuster) 使用时间调整器调整
  • public abstract Temporal with(
     TemporalField p0, long p1) 设置指定的TemporalField的值

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalAccessor


  • public int get(TemporalField field)
  • public abstract long getLong(TemporalField p0) 获取时间字段的long值
  • public abstract boolean isSupported(
     TemporalField p0) 是否支持指定的TemporalField
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalAdjuster


  • public abstract Temporal adjustInto(Temporal p0) 调整时间

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalAdjusters


  • public static TemporalAdjuster dayOfWeekInMonth(
     int ordinal, DayOfWeek dayOfWeek) 获取指定月份中指定星期几的调整器
  • public static TemporalAdjuster firstDayOfMonth() 获取月份第一天调整器
  • public static TemporalAdjuster firstDayOfNextMonth() 获取下个月第一天调整器
  • public static TemporalAdjuster firstDayOfNextYear() 获取下一年第一天调整器
  • public static TemporalAdjuster firstDayOfYear() 获取当年第一天调整器
  • public static TemporalAdjuster firstInMonth(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器
  • public static TemporalAdjuster lastDayOfMonth() 获取当月最后一天调整器
  • public static TemporalAdjuster lastDayOfYear() 获取当年最后一天调整器
  • public static TemporalAdjuster lastInMonth(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器
  • public static TemporalAdjuster next(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器
  • public static TemporalAdjuster nextOrSame(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器
  • public static TemporalAdjuster ofDateAdjuster(
     UnaryOperator dateBasedAdjuster) 创建基于日期的调整器
  • public static TemporalAdjuster previous(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器
  • public static TemporalAdjuster previousOrSame(
     DayOfWeek dayOfWeek) 获取当月第一个指定星期几的调整器

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalAmount


  • public abstract Temporal addTo(Temporal p0) 添加到另一个Temporal对象
  • public abstract long get(TemporalUnit p0) 获取指定单位的值
  • public abstract java.util.List getUnits() 获取所有单位的列表
  • public abstract Temporal subtractFrom(Temporal p0) 从另一个Temporal对象中减去

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalField


  • public abstract Temporal adjustInto(
     Temporal p0, long p1) 将时间调整到指定值
  • public abstract TemporalUnit getBaseUnit() 获取基本时间单位
  • public String getDisplayName(
     java.util.Locale locale) 根据Locale获取纪年法
  • public abstract long getFrom(TemporalAccessor p0) 从时间访问器获取值
  • public abstract TemporalUnit getRangeUnit() 获取范围时间单位
  • public abstract boolean isDateBased() 是否基于日期
  • public abstract boolean isSupportedBy(
     TemporalAccessor p0)
  • public abstract boolean isTimeBased() 是否基于时间
  • public abstract ValueRange range() 获取值的范围
  • public abstract ValueRange rangeRefinedBy(
     TemporalAccessor p0)
  • public TemporalAccessor resolve(
      java.util.Map fieldValues,
      TemporalAccessor partialTemporal,
      ResolverStyle resolverStyle) 解析日期
  • public abstract String toString() 转换为字符串

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalQueries


  • public static TemporalQuery chronology() 获取纪元查询
  • public static TemporalQuery localDate() 获取本地日期查询
  • public static TemporalQuery localTime() 获取本地时间查询
  • public static TemporalQuery offset() 获取偏移量查询
  • public static TemporalQuery precision() 获取精度查询
  • public static TemporalQuery zone() 获取时区查询
  • public static TemporalQuery zoneId() 获取时区ID查询

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalQuery


  • public abstract Object queryFrom(
     TemporalAccessor p0)

完全实现的类。
 

java.time.temporal
参见自定义

 TemporalUnit


  • public abstract Temporal addTo(Temporal p0, long p1) 将时间加上指定量
  • public abstract long between(
     Temporal p0, Temporal p1) 计算两个时间点之间的时间差
  • public abstract Duration getDuration() 获取持续时间
  • public abstract boolean isDateBased() 是否基于日期
  • public abstract boolean isDurationEstimated() 持续时间是否为估计值
  • 公有 boolean isSupportedBy(Temporal temporal)
  • public abstract boolean isTimeBased() 是否基于时间
  • public abstract String toString() 转换为字符串

完全实现的类。
 

java.time.temporal
参见自定义

 UnsupportedTemporalTypeException


  • public UnsupportedTemporalTypeException(
     String message) 不支持的时间类型异常
  • public UnsupportedTemporalTypeException(
     String message, Throwable cause)

完全实现的类。
 

java.time.temporal
参见自定义

 ValueRange


  • public int checkValidIntValue(
     long value, TemporalField field) 检查整数值是否有效
  • public long checkValidValue(
     long value, TemporalField field) 检查整数值是否有效
  • public boolean equals(Object obj)
  • public long getLargestMinimum() 获取最大最小值
  • public long getMaximum() 获取最大值
  • public long getMinimum() 获取最小值
  • public long getSmallestMaximum() 获取最小最大值
  • public int hashCode()
  • public boolean isFixed() 值范围是否固定
  • public boolean isIntValue() 值是否为整数
  • public boolean isValidIntValue(long value) 整数值是否有效
  • public boolean isValidValue(long value) 值是否有效
  • public static ValueRange of(long min, long max) 创建值范围
  • public static ValueRange of(
     long min, long maxSmallest, long maxLargest) 创建值范围(含最小最大值)
  • public static ValueRange of(
      long minSmallest,
      long minLargest,
      long maxSmallest,
      long maxLargest)
  • public String toString()

完全实现的类。
 

java.time.temporal
参见自定义

 WeekFields


  • public static final WeekFields ISO ISO周
  • public static final WeekFields SUNDAY_START 以周日开始的周
  • public static final TemporalUnit WEEK_BASED_YEARS 基于周的年数
  • public TemporalField dayOfWeek() 获取星期几字段
  • public boolean equals(Object object) 判断是否相等
  • public DayOfWeek getFirstDayOfWeek() 获取一周的第一天
  • public int getMinimalDaysInFirstWeek() 获取第一周的最小天数
  • public int hashCode()
  • public static WeekFields of(
      DayOfWeek firstDayOfWeek,
      int minimalDaysInFirstWeek) 创建WeekFields
  • public static WeekFields of(java.util.Locale locale) 根据Locale创建WeekFields
  • public String toString()
  • public TemporalField weekBasedYear() 获取基于周的年份字段
  • public TemporalField weekOfMonth() 获取月份周数字段
  • public TemporalField weekOfWeekBasedYear() 获取基于周的年份周数字段
  • public TemporalField weekOfYear() 获取年份周数字段

完全实现的类。
 

java.time.zone
参见自定义

 ZoneOffsetTransition


  • public int compareTo(
     ZoneOffsetTransition transition) 比较两个ZoneOffsetTransition
  • public boolean equals(Object other) 判断是否相等
  • public LocalDateTime getDateTimeAfter() 获取之后的时间
  • public LocalDateTime getDateTimeBefore() 获取之前的时间
  • 公有 Duration getDuration()
  • public Instant getInstant() 获取Instant
  • public ZoneOffset getOffsetAfter() 获取之后的时间偏移量
  • public ZoneOffset getOffsetBefore() 获取之前的时间偏移量
  • public int hashCode()
  • public boolean isGap() 是否有间隙
  • public boolean isOverlap() 是否重叠
  • public boolean isValidOffset(ZoneOffset offset) 偏移量是否有效
  • public static ZoneOffsetTransition of(
      LocalDateTime transition,
      ZoneOffset offsetBefore,
      ZoneOffset offsetAfter) 创建ZoneOffsetTransition
  • public long toEpochSecond()
  • public String toString()

完全实现的类。
 

java.time.zone
参见自定义

 ZoneOffsetTransitionRule.
 TimeDefinition


  • public static final ZoneOffsetTransitionRule.TimeDefinition STANDARD 标准时间定义
  • public static final ZoneOffsetTransitionRule.TimeDefinition UTC UTC时间定义
  • public static final ZoneOffsetTransitionRule.TimeDefinition WALL 墙上时间定义
  • public LocalDateTime createDateTime(
      LocalDateTime dateTime,
      ZoneOffset standardOffset,
      ZoneOffset wallOffset) 创建LocalDateTime
  • public static ZoneOffsetTransitionRule.TimeDefinition valueOf(
     String name) 根据名称获取TimeDefinition
  • public static ZoneOffsetTransitionRule.TimeDefinition[] values() 获取所有TimeDefinition

完全实现的类。
 

java.time.zone
参见自定义

 ZoneOffsetTransitionRule


  • public ZoneOffsetTransition createTransition(
     int year) 创建ZoneOffsetTransition
  • public boolean equals(Object otherRule) 判断是否相等
  • public int getDayOfMonthIndicator() 获取月份中的天数指示器
  • public DayOfWeek getDayOfWeek()
  • public LocalTime getLocalTime() 获取LocalTime
  • public Month getMonth()
  • public ZoneOffset getOffsetAfter() 获取之后的时间偏移量
  • public ZoneOffset getOffsetBefore() 获取之前的时间偏移量
  • public ZoneOffset getStandardOffset() 获取标准偏移量
  • public ZoneOffsetTransitionRule.TimeDefinition getTimeDefinition() 获取时间定义
  • public int hashCode()
  • public boolean isMidnightEndOfDay() 是否为午夜结束
  • public static ZoneOffsetTransitionRule of(
      Month month,
      int dayOfMonthIndicator,
      DayOfWeek dayOfWeek,
      LocalTime time,
      boolean timeEndOfDay,
      ZoneOffsetTransitionRule.TimeDefinition timeDefnition,
      ZoneOffset standardOffset,
      ZoneOffset offsetBefore,
      ZoneOffset offsetAfter) 创建ZoneOffsetTransition
  • public String toString()

完全实现的类。
 

java.time.zone
参见自定义

 ZoneRules


  • public boolean equals(Object otherRules) 判断是否相等
  • public Duration getDaylightSavings(Instant instant) 获取夏令时持续时间
  • public ZoneOffset getOffset(Instant instant) 获取偏移量
  • public ZoneOffset getOffset(
     LocalDateTime localDateTime) 获取偏移量
  • public ZoneOffset getStandardOffset(Instant instant) 获取标准偏移量
  • public ZoneOffsetTransition getTransition(
     LocalDateTime localDateTime) 获取偏移量
  • public java.util.List getTransitionRules() 获取转换规则列表
  • public java.util.List getTransitions() 获取转换列表
  • public java.util.List getValidOffsets(
     LocalDateTime localDateTime) 获取偏移量
  • public int hashCode()
  • public boolean isDaylightSavings(Instant instant) 是否为夏令时
  • public boolean isFixedOffset() 偏移量是否固定
  • public boolean isValidOffset(
     LocalDateTime localDateTime, ZoneOffset offset) 偏移量是否有效
  • public ZoneOffsetTransition nextTransition(
     Instant instant) 获取下一个转换
  • public static ZoneRules of(ZoneOffset offset) 创建ZoneRules
  • public static ZoneRules of(
      ZoneOffset baseStandardOffset,
      ZoneOffset baseWallOffset,
      java.util.List standardOffsetTransitionList,
      java.util.List transitionList,
      java.util.List lastRules) 创建ZoneRules
  • public ZoneOffsetTransition previousTransition(
     Instant instant) 获取下一个转换
  • public String toString()

完全实现的类。
 

java.time.zone
参见自定义

 ZoneRulesException


  • public ZoneRulesException(String message) 时区规则异常
  • public ZoneRulesException(
     String message, Throwable cause)

完全实现的类。
 

java.util


 Arrays


  • public static Spliterator.OfDouble spliterator(
     double[] p0) 创建double数组的Spliterator
  • public static Spliterator.OfDouble spliterator(
     double[] p0, int p1, int p2)
  • public static Spliterator.OfInt spliterator(
     int[] p0) 创建int数组的Spliterator
  • public static Spliterator.OfInt spliterator(
     int[] p0, int p1, int p2)
  • public static Spliterator.OfLong spliterator(
     long[] p0) 创建long数组的Spliterator
  • public static Spliterator.OfLong spliterator(
     long[] p0, int p1, int p2)
  • public static Spliterator spliterator(Object[] p0) 创建Object数组的Spliterator
  • public static Spliterator spliterator(
     Object[] p0, int p1, int p2)
  • public static DoubleStream stream(double[] p0) 创建double数组的流
  • public static DoubleStream stream(
     double[] p0, int p1, int p2)
  • public static IntStream stream(int[] p0) 创建int数组的流
  • public static IntStream stream(
     int[] p0, int p1, int p2)
  • public static LongStream stream(long[] p0) 创建long数组的流
  • public static LongStream stream(
     long[] p0, int p1, int p2)
  • public static Stream stream(Object[] p0) 创建Object数组的流
  • public static Stream stream(
     Object[] p0, int p1, int p2)

现有类中的附加方法。
 

java.util


 Calendar


  • public final java.time.Instant toInstant() 转换为Instant

现有类中的附加方法。
 

java.util


 Collection


  • public Stream parallelStream()1 并行流 (API level 21以上支持)
  • public boolean removeIf(Predicate filter) 移除符合条件的元素
  • public Spliterator spliterator() 获取Spliterator
  • public Stream stream() 获取流
  • public Object[] toArray(
     IntFunction generator)3 转换为数组

现有类中的附加方法。
 1 API级别21或更高版本的设备才支持。
 3 在所有 minSDK 等级中均不受支持。
 

java.util


 Collections


  • public static Map synchronizedMap(Map p0) 创建同步Map
  • public static SortedMap synchronizedSortedMap(
     SortedMap p0) 创建同步SortedMap

现有类中的附加方法。
 

java.util


 Comparator


  • public static Comparator comparing(
     Function keyExtractor) 根据键提取器创建比较器
  • public static Comparator comparing(
     Function keyExtractor, Comparator keyComparator)
  • public static Comparator comparingDouble(
     ToDoubleFunction keyExtractor) 根据double键提取器创建比较器
  • public static Comparator comparingInt(
     ToIntFunction keyExtractor) 根据int键提取器创建比较器
  • public static Comparator comparingLong(
     ToLongFunction keyExtractor) 根据long键提取器创建比较器
  • public static Comparator naturalOrder() 获取自然顺序比较器
  • public static Comparator nullsFirst(
     Comparator comparator) 空值优先比较器
  • public static Comparator nullsLast(
     Comparator comparator) 空值优先比较器
  • public static Comparator reverseOrder() 获取逆序比较器
  • public Comparator reversed() 获取逆序比较器
  • public Comparator thenComparing(Comparator other) 链式比较器
  • public Comparator thenComparing(
     Function keyExtractor) 根据键提取器创建比较器
  • public Comparator thenComparing(
     Function keyExtractor, Comparator keyComparator)
  • public Comparator thenComparingDouble(
     ToDoubleFunction keyExtractor) 根据double键提取器创建比较器
  • public Comparator thenComparingInt(
     ToIntFunction keyExtractor) 根据int键提取器创建比较器
  • public Comparator thenComparingLong(
     ToLongFunction keyExtractor) 根据long键提取器创建比较器

现有类中的附加方法。
 

java.util


 Date


  • public static Date from(java.time.Instant p0) 从Instant创建Date
  • public java.time.Instant toInstant() 转换为Instant

现有类中的附加方法。
 

java.util


 DoubleSummaryStatistics


  • public DoubleSummaryStatistics() 创建DoubleSummaryStatistics
  • public void accept(double value) 添加double值
  • public void combine(DoubleSummaryStatistics other) 合并DoubleSummaryStatistics
  • public final double getAverage() 获取平均值
  • public final long getCount() 获取计数
  • public final double getMax() 获取最大值
  • public final double getMin() 获取最小值
  • public final double getSum() 获取总和
  • public String toString()

完全实现的类。
 

java.util


 GregorianCalendar


  • public static GregorianCalendar from(
     java.time.ZonedDateTime p0) 从ZonedDateTime创建GregorianCalendar
  • public java.time.ZonedDateTime toZonedDateTime() 转换为ZonedDateTime

现有类中的附加方法。
 

java.util


 IntSummaryStatistics


  • public IntSummaryStatistics() 创建IntSummaryStatistics
  • public void accept(int value) 添加int值
  • public void combine(IntSummaryStatistics other) 合并IntSummaryStatistics
  • public final double getAverage() 获取平均值
  • public final long getCount() 获取计数
  • public final int getMax() 获取最大值
  • public final int getMin() 获取最小值
  • public final long getSum() 获取总和
  • public String toString()

部分 Android T 中提供的 方法(1) 不受支持。

java.util


 Iterator


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void remove() 移除元素

现有类中的附加方法。
 

java.util


 List


  • public static List copyOf(Collection p0) 创建List的副本
  • public static List of() 创建空的List
  • public static List of(Object p0) 创建包含一个元素的List
  • public static List of(Object p0, Object p1) 创建包含两个元素的List
  • public static List of(
     Object p0, Object p1, Object p2) 创建包含三个元素的List
  • public static List of(
     Object p0, Object p1, Object p2, Object p3)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    对象 p9)
  • public static List of(Object[] p0)
  • public void replaceAll(UnaryOperator operator)
  • public void sort(Comparator c)
  • public Spliterator spliterator() 获取Spliterator

现有类中的附加方法。
 

java.util


LongSummaryStatistics


  • public LongSummaryStatistics()
  • public void accept(int value) 添加int值
  • public void accept(long value)
  • public void combine(LongSummaryStatistics other)
  • public final double getAverage() 获取平均值
  • public final long getCount() 获取计数
  • public final long getMax()
  • public final long getMin()
  • public final long getSum() 获取总和
  • public String toString()

部分 Android T 中提供的 方法(1) 不受支持。

java.util


Map。
Entry


  • public static Comparator comparingByKey()
  • public static Comparator comparingByKey(
    Comparator cmp)
  • public static Comparator comparingByValue()
  • public static Comparator comparingByValue(
    Comparator cmp)

现有类中的附加方法。
 

java.util


Map


  • public Object compute(
    Object key, BiFunction remappingFunction)
  • public Object computeIfAbsent(
    Object key, Function mappingFunction)
  • public Object computeIfPresent(
    Object key, BiFunction remappingFunction)
  • public static Map copyOf(Map p0)
  • public static Map.Entry entry(Object p0, Object p1)
  • public void forEach(BiConsumer action)
  • public Object getOrDefault(
    Object key, Object defaultValue)
  • public Object merge(
    Object key,
    Object value,
    BiFunction remappingFunction)
  • public static Map of()
  • public static Map of(Object p0, Object p1)
  • public static Map of(
     Object p0, Object p1, Object p2, Object p3)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    对象 p9)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    Object p9,
    Object p10,
    Object p11)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    Object p9,
    Object p10,
    Object p11,
    Object p12,
    Object p13)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    Object p9,
    Object p10,
    Object p11,
    Object p12,
    Object p13,
    Object p14,
    Object p15)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    Object p9,
    Object p10,
    Object p11,
    Object p12,
    Object p13,
    Object p14,
    Object p15,
    Object p16,
    Object p17)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    Object p9,
    Object p10,
    Object p11,
    Object p12,
    Object p13,
    Object p14,
    Object p15,
    Object p16,
    Object p17,
    Object p18,
    Object p19)
  • public static Map ofEntries(Map.Entry[] p0)
  • public Object putIfAbsent(Object key, Object value)
  • public boolean remove(Object key, Object value)
  • public Object replace(Object key, Object value)
  • public boolean replace(
    Object key, Object oldValue, Object newValue)
  • public void replaceAll(BiFunction function)

现有类中的附加方法。
 

java.util


Optional


  • public static Optional empty()
  • public boolean equals(Object obj)
  • public Optional filter(Predicate predicate)
  • public Optional flatMap(Function mapper)
  • public Object get()
  • public int hashCode()
  • public void ifPresent(Consumer consumer)
  • public void ifPresentOrElse(
    Consumer p0, Runnable p1)
  • public boolean isEmpty()
  • public boolean isPresent()
  • public Optional map(Function mapper)
  • public static Optional of(Object value)
  • public static Optional ofNullable(Object value)
  • public Optional or(Supplier p0)
  • public Object orElse(Object other)
  • public Object orElseGet(Supplier other)
  • public Object orElseThrow()
  • public Object orElseThrow(
    Supplier exceptionSupplier)
  • public Stream stream() 获取流
  • public String toString()

完全实现的类。
 

java.util


OptionalDouble


  • public static OptionalDouble empty()
  • public boolean equals(Object obj)
  • public double getAsDouble()
  • public int hashCode()
  • public void ifPresent(DoubleConsumer consumer)
  • public void ifPresentOrElse(
    DoubleConsumer p0, Runnable p1)
  • public boolean isEmpty()
  • public boolean isPresent()
  • public static OptionalDouble of(double value)
  • public double orElse(double other)
  • public double orElseGet(DoubleSupplier other)
  • public double orElseThrow()
  • public double orElseThrow(
    Supplier exceptionSupplier)
  • public DoubleStream stream()
  • public String toString()

完全实现的类。
 

java.util


OptionalInt


  • public static OptionalInt empty()
  • public boolean equals(Object obj)
  • public int getAsInt()
  • public int hashCode()
  • public void ifPresent(IntConsumer consumer)
  • public void ifPresentOrElse(
    IntConsumer p0, Runnable p1)
  • public boolean isEmpty()
  • public boolean isPresent()
  • public static OptionalInt of(int value)
  • public int orElse(int other)
  • public int orElseGet(IntSupplier other)
  • public int orElseThrow()
  • public int orElseThrow(Supplier exceptionSupplier)
  • public IntStream stream()
  • public String toString()

完全实现的类。
 

java.util


OptionalLong


  • public static OptionalLong empty()
  • public boolean equals(Object obj)
  • public long getAsLong()
  • public int hashCode()
  • public void ifPresent(LongConsumer consumer)
  • public void ifPresentOrElse(
    LongConsumer p0, Runnable p1)
  • public boolean isEmpty()
  • public boolean isPresent()
  • public static OptionalLong of(long value)
  • public long orElse(long other)
  • public long orElseGet(LongSupplier other)
  • public long orElseThrow()
  • public long orElseThrow(Supplier exceptionSupplier)
  • public LongStream stream()
  • public String toString()

完全实现的类。
 

java.util


PrimitiveIterator。
OfDouble


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(DoubleConsumer action)
  • public Double next()
  • public abstract double nextDouble()

完全实现的类。
 

java.util


PrimitiveIterator。
OfInt


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(IntConsumer action)
  • public Integer next()
  • public abstract int nextInt()

完全实现的类。
 

java.util


PrimitiveIterator。
OfLong


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(LongConsumer action)
  • public Long next()
  • public abstract long nextLong()

完全实现的类。
 

java.util


PrimitiveIterator


  • public abstract void forEachRemaining(Object p0)

完全实现的类。
 

java.util


Set


  • public static Set copyOf(Collection p0)
  • public static Set of()
  • public static Set of(Object p0)
  • public static Set of(Object p0, Object p1)
  • public static Set of(
     Object p0, Object p1, Object p2) 创建包含三个元素的List
  • public static Set of(
     Object p0, Object p1, Object p2, Object p3)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
    对象 p6,
    对象 p7,
    对象 p8,
    对象 p9)
  • public static Set of(Object[] p0)
  • public Spliterator spliterator() 获取Spliterator

现有类中的附加方法。
 

java.util


SortedSet


  • public Spliterator spliterator() 获取Spliterator

现有类中的附加方法。
 

java.util


Spliterator。
OfDouble


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(DoubleConsumer action)
  • public boolean tryAdvance(Consumer action)
  • public abstract boolean tryAdvance(
    DoubleConsumer p0)
  • public abstract Spliterator.OfDouble trySplit()

完全实现的类。
 

java.util


Spliterator。
OfInt


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(IntConsumer action)
  • public boolean tryAdvance(Consumer action)
  • public abstract boolean tryAdvance(IntConsumer p0)
  • public abstract Spliterator.OfInt trySplit()

完全实现的类。
 

java.util


Spliterator。
OfLong


  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public void forEachRemaining(LongConsumer action)
  • public boolean tryAdvance(Consumer action)
  • public abstract boolean tryAdvance(LongConsumer p0)
  • public abstract Spliterator.OfLong trySplit()

完全实现的类。
 

java.util


Spliterator。
OfPrimitive


  • public void forEachRemaining(Object action)
  • public abstract boolean tryAdvance(Object p0)
  • public abstract Spliterator.OfPrimitive trySplit()

完全实现的类。
 

java.util


Spliterator


  • public static final int CONCURRENT
  • public static final int DISTINCT
  • public static final int IMMUTABLE
  • public static final int NONNULL
  • public static final int ORDERED
  • public static final int SIZED
  • public static final int SORTED
  • public static final int SUBSIZED
  • public abstract int characteristics()
  • public abstract long estimateSize()
  • public void forEachRemaining(Consumer action) 对剩余元素执行操作
  • public Comparator getComparator()
  • public long getExactSizeIfKnown()
  • public boolean hasCharacteristics(
    int characteristics)
  • public abstract boolean tryAdvance(Consumer p0)
  • public abstract Spliterator trySplit()

完全实现的类。
 

java.util


Spliterators。
AbstractDoubleSpliterator


  • protected Spliterators.AbstractDoubleSpliterator(
    long est, int additionalCharacteristics)
  • public int characteristics()
  • public long estimateSize()
  • public Spliterator.OfDouble trySplit()

完全实现的类。
 

java.util


Spliterators。
AbstractIntSpliterator


  • protected Spliterators.AbstractIntSpliterator(
    long est, int additionalCharacteristics)
  • public int characteristics()
  • public long estimateSize()
  • public Spliterator.OfInt trySplit()

完全实现的类。
 

java.util


Spliterators。
AbstractLongSpliterator


  • protected Spliterators.AbstractLongSpliterator(
    long est, int additionalCharacteristics)
  • public int characteristics()
  • public long estimateSize()
  • public Spliterator.OfLong trySplit()

完全实现的类。
 

java.util


Spliterators。
AbstractSpliterator


  • protected Spliterators.AbstractSpliterator(
    long est, int additionalCharacteristics)
  • public int characteristics()
  • public long estimateSize()
  • public Spliterator trySplit()

完全实现的类。
 

java.util


Spliterators


  • public static Spliterator.OfDouble emptyDoubleSpliterator()
  • public static Spliterator.OfInt emptyIntSpliterator()
  • public static Spliterator.OfLong emptyLongSpliterator()
  • public static Spliterator emptySpliterator()
  • public static Iterator iterator(
    Spliterator spliterator)
  • public static PrimitiveIterator.OfDouble iterator(
    Spliterator.OfDouble spliterator)
  • public static PrimitiveIterator.OfInt iterator(
    Spliterator.OfInt spliterator)
  • public static PrimitiveIterator.OfLong iterator(
    Spliterator.OfLong spliterator)
  • public static Spliterator.OfDouble spliterator(
    PrimitiveIterator.OfDouble iterator,
    long size,
    int characteristics)
  • public static Spliterator.OfDouble spliterator(
    double[] array, int additionalCharacteristics)
  • public static Spliterator.OfDouble spliterator(
    double[] array,
    int fromIndex,
    int toIndex,
    int additionalCharacteristics)
  • public static Spliterator.OfInt spliterator(
    PrimitiveIterator.OfInt iterator,
    long size,
    int characteristics)
  • public static Spliterator.OfInt spliterator(
    int[] array, int additionalCharacteristics)
  • public static Spliterator.OfInt spliterator(
    int[] array,
    int fromIndex,
    int toIndex,
    int additionalCharacteristics)
  • public static Spliterator.OfLong spliterator(
    PrimitiveIterator.OfLong iterator,
    long size,
    int characteristics)
  • public static Spliterator.OfLong spliterator(
    long[] array, int additionalCharacteristics)
  • public static Spliterator.OfLong spliterator(
    long[] array,
    int fromIndex,
    int toIndex,
    int additionalCharacteristics)
  • public static Spliterator spliterator(
    Collection c, int characteristics)
  • public static Spliterator spliterator(
    Iterator iterator, long size, int characteristics)
  • public static Spliterator spliterator(
    Object[] array, int additionalCharacteristics)
  • public static Spliterator spliterator(
    Object[] array,
    int fromIndex,
    int toIndex,
    int additionalCharacteristics)
  • public static Spliterator.OfDouble spliteratorUnknownSize(
    PrimitiveIterator.OfDouble iterator,
    int characteristics)
  • public static Spliterator.OfInt spliteratorUnknownSize(
    PrimitiveIterator.OfInt iterator,
    int characteristics)
  • public static Spliterator.OfLong spliteratorUnknownSize(
    PrimitiveIterator.OfLong iterator,
    int characteristics)
  • public static Spliterator spliteratorUnknownSize(
    Iterator iterator, int characteristics)

完全实现的类。
 

java.util


StringJoiner


  • public StringJoiner(CharSequence delimiter)
  • public StringJoiner(
    CharSequence delimiter,
    CharSequence prefix,
    CharSequence suffix)
  • public StringJoiner add(CharSequence newElement)
  • public int length()
  • public StringJoiner merge(StringJoiner other)
  • public StringJoiner setEmptyValue(
    CharSequence emptyValue)
  • public String toString()

完全实现的类。
 

java.util


TimeZone


  • public static TimeZone getTimeZone(String p0)
  • public static TimeZone getTimeZone(
    java.time.ZoneId p0)
  • public java.time.ZoneId toZoneId()

现有类中的附加方法。
 

java.util.concurrent


ConcurrentHashMap。
KeySetView


  • public boolean add(Object e)
  • public boolean addAll(Collection c)
  • public boolean contains(Object o)
  • public boolean equals(Object o)
  • public void forEach(Consumer action)
  • public Object getMappedValue()
  • public int hashCode()
  • public Iterator iterator()
  • public boolean remove(Object o)
  • public Spliterator spliterator() 获取Spliterator

Android T 中存在的一些方法 (9 个) 不受支持。

java.util.concurrent


ConcurrentHashMap


  • public ConcurrentHashMap()
  • public ConcurrentHashMap(int initialCapacity)
  • public ConcurrentHashMap(
    int initialCapacity, float loadFactor)
  • public ConcurrentHashMap(
    int initialCapacity,
    float loadFactor,
    int concurrencyLevel)
  • public ConcurrentHashMap(Map m)
  • public void clear()
  • public Object compute(
    Object key, BiFunction remappingFunction)
  • public Object computeIfAbsent(
    Object key, Function mappingFunction)
  • public Object computeIfPresent(
    Object key, BiFunction remappingFunction)
  • public boolean contains(Object value)
  • public boolean containsKey(Object key)
  • public boolean containsValue(Object value)
  • public Enumeration elements()
  • public Set entrySet()
  • public boolean equals(Object o)
  • public void forEach(BiConsumer action)
  • public Object get(Object key)
  • public Object getOrDefault(
    Object key, Object defaultValue)
  • public int hashCode()
  • public boolean isEmpty()
  • public Set keySet()
  • public Enumeration keys()
  • public long mappingCount()
  • public Object merge(
    Object key,
    Object value,
    BiFunction remappingFunction)
  • public Object put(Object key, Object value)
  • public void putAll(Map m)
  • public Object putIfAbsent(Object key, Object value)
  • public Object remove(Object key)
  • public boolean remove(Object key, Object value)
  • public Object replace(Object key, Object value)
  • public boolean replace(
    Object key, Object oldValue, Object newValue)
  • public void replaceAll(BiFunction function)
  • public int size()
  • public String toString()
  • public Collection values()

Android T 中存在的某些方法 (34 个) 不受支持。

java.util.concurrent


ConcurrentMap


  • public Object compute(
    Object key, BiFunction remappingFunction)
  • public Object computeIfAbsent(
    Object key, Function mappingFunction)
  • public Object computeIfPresent(
    Object key, BiFunction remappingFunction)
  • public void forEach(BiConsumer action)
  • public Object getOrDefault(
    Object key, Object defaultValue)
  • public Object merge(
    Object key,
    Object value,
    BiFunction remappingFunction)
  • public void replaceAll(BiFunction function)

现有类中的附加方法。
 

java.util.concurrent


ThreadLocalRandom


  • public static ThreadLocalRandom current()
  • public DoubleStream doubles()
  • public DoubleStream doubles(
    double randomNumberOrigin,
    double randomNumberBound)
  • public DoubleStream doubles(long streamSize)
  • public DoubleStream doubles(
    long streamSize,
    double randomNumberOrigin,
    double randomNumberBound)
  • public IntStream ints()
  • public IntStream ints(
    int randomNumberOrigin, int randomNumberBound)
  • public IntStream ints(long streamSize)
  • public IntStream ints(
    long streamSize,
    int randomNumberOrigin,
    int randomNumberBound)
  • public LongStream longs()
  • public LongStream longs(long streamSize)
  • public LongStream longs(
    long randomNumberOrigin, long randomNumberBound)
  • public LongStream longs(
    long streamSize,
    long randomNumberOrigin,
    long randomNumberBound)
  • protected int next(int bits)
  • public boolean nextBoolean()
  • public double nextDouble()
  • public double nextDouble(double bound)
  • public double nextDouble(
    double origin, double bound)
  • public float nextFloat()
  • public double nextGaussian()
  • public int nextInt()
  • public int nextInt(int bound)
  • public int nextInt(int origin, int bound)
  • public long nextLong()
  • public long nextLong(long bound)
  • public long nextLong(long origin, long bound)
  • public void setSeed(long seed)

完全实现的类。
 

java.util.
concurrent.atomic



AtomicInteger


  • public final int accumulateAndGet(
    int p0, IntBinaryOperator p1)
  • public final int getAndAccumulate(
    int p0, IntBinaryOperator p1)
  • public final int getAndUpdate(IntUnaryOperator p0)
  • public final int updateAndGet(IntUnaryOperator p0)

现有类中的附加方法。
 

java.util.
concurrent.atomic



AtomicLong


  • public final long accumulateAndGet(
    长 p0, LongBinaryOperator p1)
  • public final long getAndAccumulate(
    长 p0, LongBinaryOperator p1)
  • public final long getAndUpdate(LongUnaryOperator p0)
  • public final long updateAndGet(LongUnaryOperator p0)

现有类中的附加方法。
 

java.util.
concurrent.atomic



AtomicReference


  • public final Object accumulateAndGet(
    对象 p0, BinaryOperator p1)
  • public final Object getAndAccumulate(
    对象 p0, BinaryOperator p1)
  • public final Object getAndUpdate(UnaryOperator p0)
  • public final Object updateAndGet(UnaryOperator p0)

现有类中的附加方法。
 

java.util.function


BiConsumer


  • public abstract void accept(Object p0, Object p1)
  • public BiConsumer andThen(BiConsumer after)

完全实现的类。
 

java.util.function


BiFunction


  • public BiFunction andThen(Function after)
  • public abstract Object apply(Object p0, Object p1)

完全实现的类。
 

java.util.function


BiPredicate


  • public BiPredicate and(BiPredicate other)
  • public BiPredicate negate()
  • public BiPredicate or(BiPredicate other)
  • public abstract boolean test(Object p0, Object p1)

完全实现的类。
 

java.util.function


BinaryOperator


  • public static BinaryOperator maxBy(
     Comparator comparator) 空值优先比较器
  • public static BinaryOperator minBy(
     Comparator comparator) 空值优先比较器

完全实现的类。
 

java.util.function


BooleanSupplier


  • public abstract boolean getAsBoolean()

完全实现的类。
 

java.util.function


Consumer


  • public abstract void accept(Object p0)
  • public Consumer andThen(Consumer after)

完全实现的类。
 

java.util.function


DoubleBinaryOperator


  • public abstract double applyAsDouble(
    双精度浮点数 p0, 双精度浮点数 p1)

完全实现的类。
 

java.util.function


DoubleConsumer


  • public abstract void accept(double p0)
  • public DoubleConsumer andThen(DoubleConsumer after)

完全实现的类。
 

java.util.function


DoubleFunction


  • public abstract Object apply(double p0)

完全实现的类。
 

java.util.function


DoublePredicate


  • public DoublePredicate and(DoublePredicate other)
  • public DoublePredicate negate()
  • public DoublePredicate or(DoublePredicate other)
  • public abstract boolean test(double p0)

完全实现的类。
 

java.util.function


DoubleSupplier


  • public abstract double getAsDouble()

完全实现的类。
 

java.util.function


DoubleToIntFunction


  • public abstract int applyAsInt(double p0)

完全实现的类。
 

java.util.function


DoubleToLongFunction


  • public abstract long applyAsLong(double p0)

完全实现的类。
 

java.util.function


DoubleUnaryOperator


  • public DoubleUnaryOperator andThen(
    DoubleUnaryOperator after)
  • public abstract double applyAsDouble(double p0)
  • public DoubleUnaryOperator compose(
    DoubleUnaryOperator before)
  • public static DoubleUnaryOperator identity()

完全实现的类。
 

java.util.function


Function


  • public Function andThen(Function after)
  • public abstract Object apply(Object p0)
  • public Function compose(Function before)
  • public static Function identity()

完全实现的类。
 

java.util.function


IntBinaryOperator


  • public abstract int applyAsInt(int p0, int p1)

完全实现的类。
 

java.util.function


IntConsumer


  • public abstract void accept(int p0)
  • public IntConsumer andThen(IntConsumer after)

完全实现的类。
 

java.util.function


IntFunction


  • public abstract Object apply(int p0)

完全实现的类。
 

java.util.function


IntPredicate


  • public IntPredicate and(IntPredicate other)
  • public IntPredicate negate()
  • public IntPredicate or(IntPredicate other)
  • public abstract boolean test(int p0)

完全实现的类。
 

java.util.function


IntSupplier


  • public abstract int getAsInt()

完全实现的类。
 

java.util.function


IntToDoubleFunction


  • public abstract double applyAsDouble(int p0)

完全实现的类。
 

java.util.function


IntToLongFunction


  • public abstract long applyAsLong(int p0)

完全实现的类。
 

java.util.function


IntUnaryOperator


  • public IntUnaryOperator andThen(
    IntUnaryOperator after)
  • public abstract int applyAsInt(int p0)
  • public IntUnaryOperator compose(
    IntUnaryOperator before)
  • public static IntUnaryOperator identity()

完全实现的类。
 

java.util.function


LongBinaryOperator


  • public abstract long applyAsLong(long p0, long p1)

完全实现的类。
 

java.util.function


LongConsumer


  • public abstract void accept(long p0)
  • public LongConsumer andThen(LongConsumer after)

完全实现的类。
 

java.util.function


LongFunction


  • public abstract Object apply(long p0)

完全实现的类。
 

java.util.function


LongPredicate


  • public LongPredicate and(LongPredicate other)
  • public LongPredicate negate()
  • public LongPredicate or(LongPredicate other)
  • public abstract boolean test(long p0)

完全实现的类。
 

java.util.function


LongSupplier


  • public abstract long getAsLong()

完全实现的类。
 

java.util.function


LongToDoubleFunction


  • public abstract double applyAsDouble(long p0)

完全实现的类。
 

java.util.function


LongToIntFunction


  • public abstract int applyAsInt(long p0)

完全实现的类。
 

java.util.function


LongUnaryOperator


  • public LongUnaryOperator andThen(
    LongUnaryOperator after)
  • public abstract long applyAsLong(long p0)
  • public LongUnaryOperator compose(
    LongUnaryOperator before)
  • public static LongUnaryOperator identity()

完全实现的类。
 

java.util.function


ObjDoubleConsumer


  • public abstract void accept(Object p0, double p1)

完全实现的类。
 

java.util.function


ObjIntConsumer


  • public abstract void accept(Object p0, int p1)

完全实现的类。
 

java.util.function


ObjLongConsumer


  • public abstract void accept(Object p0, long p1)

完全实现的类。
 

java.util.function


Predicate


  • public Predicate and(Predicate other)
  • public static Predicate isEqual(Object targetRef)
  • public Predicate negate()
  • public static Predicate not(Predicate p0)
  • public Predicate or(Predicate other)
  • public abstract boolean test(Object p0)

完全实现的类。
 

java.util.function


Supplier


  • public abstract Object get()

完全实现的类。
 

java.util.function


ToDoubleBiFunction


  • public abstract double applyAsDouble(
    对象 p0, 对象 p1)

完全实现的类。
 

java.util.function


ToDoubleFunction


  • public abstract double applyAsDouble(Object p0)

完全实现的类。
 

java.util.function


ToIntBiFunction


  • public abstract int applyAsInt(Object p0, Object p1)

完全实现的类。
 

java.util.function


ToIntFunction


  • public abstract int applyAsInt(Object p0)

完全实现的类。
 

java.util.function


ToLongBiFunction


  • public abstract long applyAsLong(
    对象 p0, 对象 p1)

完全实现的类。
 

java.util.function


ToLongFunction


  • public abstract long applyAsLong(Object p0)

完全实现的类。
 

java.util.function


UnaryOperator


  • public static UnaryOperator identity()

完全实现的类。
 

java.util.stream


BaseStream


  • public abstract void close()
  • public abstract boolean isParallel()
  • public abstract Iterator iterator()
  • public abstract BaseStream onClose(Runnable p0)
  • public abstract BaseStream parallel()1
  • public abstract BaseStream sequential()
  • public abstract Spliterator spliterator()
  • public abstract BaseStream unordered()

1 API级别21或更高版本的设备才支持。
 

java.util.stream


Collector.
Characteristics


  • public static final Collector.Characteristics CONCURRENT
  • public static final Collector.Characteristics IDENTITY_FINISH
  • public static final Collector.Characteristics UNORDERED
  • public static Collector.Characteristics valueOf(
     String name) 根据名称获取TimeDefinition
  • public static Collector.Characteristics[] values()

完全实现的类。
 

java.util.stream


Collector


  • public abstract BiConsumer accumulator()
  • public abstract Set characteristics()
  • public abstract BinaryOperator combiner()
  • public abstract Function finisher()
  • public static Collector of(
    Supplier supplier,
    BiConsumer accumulator,
    BinaryOperator combiner,
    Function finisher,
    Collector.Characteristics[] characteristics)
  • public static Collector of(
    Supplier supplier,
    BiConsumer accumulator,
    BinaryOperator combiner,
    Collector.Characteristics[] characteristics)
  • public abstract Supplier supplier()

完全实现的类。
 

java.util.stream


Collectors


  • public static Collector averagingDouble(
    ToDoubleFunction mapper)
  • public static Collector averagingInt(
    ToIntFunction mapper)
  • public static Collector averagingLong(
    ToLongFunction mapper)
  • public static Collector collectingAndThen(
    Collector downstream, Function finisher)
  • public static Collector counting()
  • public static Collector groupingBy(
    Function classifier)
  • public static Collector groupingBy(
    Function classifier,
    Supplier mapFactory,
    Collector downstream)
  • public static Collector groupingBy(
    Function classifier, Collector downstream)
  • public static Collector groupingByConcurrent(
    Function classifier)
  • public static Collector groupingByConcurrent(
    Function classifier,
    Supplier mapFactory,
    Collector downstream)
  • public static Collector groupingByConcurrent(
    Function classifier, Collector downstream)
  • public static Collector joining()
  • public static Collector joining(
    CharSequence delimiter)
  • public static Collector joining(
    CharSequence delimiter,
    CharSequence prefix,
    CharSequence suffix)
  • public static Collector mapping(
    Function mapper, Collector downstream)
  • public static Collector maxBy(Comparator comparator)
  • public static Collector minBy(Comparator comparator)
  • public static Collector partitioningBy(
    Predicate predicate)
  • public static Collector partitioningBy(
    Predicate predicate, Collector downstream)
  • public static Collector reducing(
    对象 identity, BinaryOperator op)
  • public static Collector reducing(
    对象 identity,
    Function mapper,
    BinaryOperator op)
  • public static Collector reducing(BinaryOperator op)
  • public static Collector summarizingDouble(
    ToDoubleFunction mapper)
  • public static Collector summarizingInt(
    ToIntFunction mapper)
  • public static Collector summarizingLong(
    ToLongFunction mapper)
  • public static Collector summingDouble(
    ToDoubleFunction mapper)
  • public static Collector summingInt(
    ToIntFunction mapper)
  • public static Collector summingLong(
    ToLongFunction mapper)
  • public static Collector toCollection(
    Supplier collectionFactory)
  • public static Collector toConcurrentMap(
    Function keyMapper, Function valueMapper)
  • public static Collector toConcurrentMap(
    Function keyMapper,
    Function valueMapper,
    BinaryOperator mergeFunction)
  • public static Collector toConcurrentMap(
    Function keyMapper,
    Function valueMapper,
    BinaryOperator mergeFunction,
    Supplier mapSupplier)
  • public static Collector toList()
  • public static Collector toMap(
    Function keyMapper, Function valueMapper)
  • public static Collector toMap(
    Function keyMapper,
    Function valueMapper,
    BinaryOperator mergeFunction)
  • public static Collector toMap(
    Function keyMapper,
    Function valueMapper,
    BinaryOperator mergeFunction,
    Supplier mapSupplier)
  • public static Collector toSet()

Android T 中存在的某些方法 (6 个) 不受支持。

java.util.stream


DoubleStream.
Builder


  • public abstract void accept(double p0)
  • public DoubleStream.Builder add(double t)
  • public abstract DoubleStream build()

完全实现的类。
 

java.util.stream


DoubleStream


  • public abstract boolean allMatch(DoublePredicate p0)
  • public abstract boolean anyMatch(DoublePredicate p0)
  • public abstract OptionalDouble average()
  • public abstract Stream boxed()
  • public static DoubleStream.Builder builder()
  • public abstract Object collect(
    Supplier p0, ObjDoubleConsumer p1, BiConsumer p2)
  • public static DoubleStream concat(
    DoubleStream a, DoubleStream b)
  • public abstract long count()
  • public abstract DoubleStream distinct()
  • public static DoubleStream empty()
  • public abstract DoubleStream filter(
    DoublePredicate p0)
  • public abstract OptionalDouble findAny()
  • public abstract OptionalDouble findFirst()
  • public abstract DoubleStream flatMap(
    DoubleFunction p0)
  • public abstract void forEach(DoubleConsumer p0)
  • public abstract void forEachOrdered(
    DoubleConsumer p0)
  • public static DoubleStream generate(
    DoubleSupplier s)
  • public static DoubleStream iterate(
    双精度浮点数 seed, DoubleUnaryOperator f)
  • public abstract PrimitiveIterator.OfDouble iterator()
  • public abstract DoubleStream limit(long p0)
  • public abstract DoubleStream map(
    DoubleUnaryOperator p0)
  • public abstract IntStream mapToInt(
    DoubleToIntFunction p0)
  • public abstract LongStream mapToLong(
    DoubleToLongFunction p0)
  • public abstract Stream mapToObj(DoubleFunction p0)
  • public abstract OptionalDouble max()
  • public abstract OptionalDouble min()
  • public abstract boolean noneMatch(
    DoublePredicate p0)
  • public static DoubleStream of(double t)
  • public static DoubleStream of(double[] values)
  • public abstract DoubleStream parallel()1
  • public abstract DoubleStream peek(DoubleConsumer p0)
  • public abstract double reduce(
    双精度浮点数 p0, DoubleBinaryOperator p1)
  • public abstract OptionalDouble reduce(
    DoubleBinaryOperator p0)
  • public abstract DoubleStream sequential()
  • public abstract DoubleStream skip(long p0)
  • public abstract DoubleStream sorted()
  • public abstract Spliterator.OfDouble spliterator()
  • public abstract double sum()
  • public abstract DoubleSummaryStatistics summaryStatistics()
  • public abstract double[] toArray()

1 API级别21或更高版本的设备才支持。
 

java.util.stream


IntStream.
Builder


  • public abstract void accept(int p0)
  • public IntStream.Builder add(int t)
  • public abstract IntStream build()

完全实现的类。
 

java.util.stream


IntStream


  • public abstract boolean allMatch(IntPredicate p0)
  • public abstract boolean anyMatch(IntPredicate p0)
  • public abstract DoubleStream asDoubleStream()
  • public abstract LongStream asLongStream()
  • public abstract OptionalDouble average()
  • public abstract Stream boxed()
  • public static IntStream.Builder builder()
  • public abstract Object collect(
    Supplier p0, ObjIntConsumer p1, BiConsumer p2)
  • public static IntStream concat(
    IntStream a, IntStream b)
  • public abstract long count()
  • public abstract IntStream distinct()
  • public static IntStream empty()
  • public abstract IntStream filter(IntPredicate p0)
  • public abstract OptionalInt findAny()
  • public abstract OptionalInt findFirst()
  • public abstract IntStream flatMap(IntFunction p0)
  • public abstract void forEach(IntConsumer p0)
  • public abstract void forEachOrdered(IntConsumer p0)
  • public static IntStream generate(IntSupplier s)
  • public static IntStream iterate(
    整数 seed, IntUnaryOperator f)
  • public abstract PrimitiveIterator.OfInt iterator()
  • public abstract IntStream limit(long p0)
  • public abstract IntStream map(IntUnaryOperator p0)
  • public abstract DoubleStream mapToDouble(
    IntToDoubleFunction p0)
  • public abstract LongStream mapToLong(
    IntToLongFunction p0)
  • public abstract Stream mapToObj(IntFunction p0)
  • public abstract OptionalInt max()
  • public abstract OptionalInt min()
  • public abstract boolean noneMatch(IntPredicate p0)
  • public static IntStream of(int t)
  • public static IntStream of(int[] values)
  • public abstract IntStream parallel()1
  • public abstract IntStream peek(IntConsumer p0)
  • public static IntStream range(
     int startInclusive, int endExclusive)
  • public static IntStream rangeClosed(
     int startInclusive, int endInclusive)
  • public abstract int reduce(
    int p0, IntBinaryOperator p1)
  • public abstract OptionalInt reduce(
     IntBinaryOperator p0)
  • public abstract IntStream sequential()
  • public abstract IntStream skip(long p0)
  • public abstract IntStream sorted()
  • public abstract Spliterator.OfInt spliterator()
  • public abstract int sum()
  • public abstract IntSummaryStatistics summaryStatistics()
  • public abstract int[] toArray()

1 API级别21或更高版本的设备才支持。
 

java.util.stream


 LongStream.
Builder


  • public abstract void accept(long p0)
  • public LongStream.Builder add(long t)
  • public abstract LongStream build()

完全实现的类。
 

java.util.stream


 LongStream


  • public abstract boolean allMatch(LongPredicate p0)
  • public abstract boolean anyMatch(LongPredicate p0)
  • public abstract DoubleStream asDoubleStream()
  • public abstract OptionalDouble average()
  • public abstract Stream boxed()
  • public static LongStream.Builder builder()
  • public abstract Object collect(
     Supplier p0, ObjLongConsumer p1, BiConsumer p2)
  • public static LongStream concat(
     LongStream a, LongStream b)
  • public abstract long count()
  • public abstract LongStream distinct()
  • public static LongStream empty()
  • public abstract LongStream filter(LongPredicate p0)
  • public abstract OptionalLong findAny()
  • public abstract OptionalLong findFirst()
  • public abstract LongStream flatMap(LongFunction p0)
  • public abstract void forEach(LongConsumer p0)
  • public abstract void forEachOrdered(LongConsumer p0)
  • public static LongStream generate(LongSupplier s)
  • public static LongStream iterate(
     long seed, LongUnaryOperator f)
  • public abstract PrimitiveIterator.OfLong iterator()
  • public abstract LongStream limit(long p0)
  • public abstract LongStream map(LongUnaryOperator p0)
  • public abstract DoubleStream mapToDouble(
     LongToDoubleFunction p0)
  • public abstract IntStream mapToInt(
     LongToIntFunction p0)
  • public abstract Stream mapToObj(LongFunction p0)
  • public abstract OptionalLong max()
  • public abstract OptionalLong min()
  • public abstract boolean noneMatch(LongPredicate p0)
  • public static LongStream of(long t)
  • public static LongStream of(long[] values)
  • public abstract LongStream parallel()1
  • public abstract LongStream peek(LongConsumer p0)
  • public static LongStream range(
     long startInclusive, long endExclusive)
  • public static LongStream rangeClosed(
     long startInclusive, long endInclusive)
  • public abstract long reduce(
    长 p0, LongBinaryOperator p1)
  • public abstract OptionalLong reduce(
     LongBinaryOperator p0)
  • public abstract LongStream sequential()
  • public abstract LongStream skip(long p0)
  • public abstract LongStream sorted()
  • public abstract Spliterator.OfLong spliterator()
  • public abstract long sum()
  • public abstract LongSummaryStatistics summaryStatistics()
  • public abstract long[] toArray()

1 API级别21或更高版本的设备才支持。
 

java.util.stream


 Stream.
Builder


  • public abstract void accept(Object p0)
  • public Stream.Builder add(Object t)
  • public abstract Stream build()

完全实现的类。
 

java.util.stream


 Stream


  • public abstract boolean allMatch(Predicate p0)
  • public abstract boolean anyMatch(Predicate p0)
  • public static Stream.Builder builder()
  • public abstract Object collect(
     Supplier p0, BiConsumer p1, BiConsumer p2)
  • public abstract Object collect(Collector p0)
  • public static Stream concat(Stream a, Stream b)
  • public abstract long count()
  • public abstract Stream distinct()
  • public static Stream empty()
  • public abstract Stream filter(Predicate p0)
  • public abstract Optional findAny()
  • public abstract Optional findFirst()
  • public abstract Stream flatMap(Function p0)
  • public abstract DoubleStream flatMapToDouble(
     Function p0)
  • public abstract IntStream flatMapToInt(Function p0)
  • public abstract LongStream flatMapToLong(
     Function p0)
  • public abstract void forEach(Consumer p0)
  • public abstract void forEachOrdered(Consumer p0)
  • public static Stream generate(Supplier s)
  • public static Stream iterate(
     Object seed, UnaryOperator f)
  • public abstract Stream limit(long p0)
  • public abstract Stream map(Function p0)
  • public abstract DoubleStream mapToDouble(
     ToDoubleFunction p0)
  • public abstract IntStream mapToInt(ToIntFunction p0)
  • public abstract LongStream mapToLong(
     ToLongFunction p0)
  • public abstract Optional max(Comparator p0)
  • public abstract Optional min(Comparator p0)
  • public abstract boolean noneMatch(Predicate p0)
  • public static Stream of(Object t)
  • public static Stream of(Object[] values)
  • public static Stream ofNullable(
     Object p0)2
  • public abstract Stream peek(Consumer p0)
  • public abstract Object reduce(
     Object p0, BiFunction p1, BinaryOperator p2)
  • public abstract Object reduce(
    对象 p0, BinaryOperator p1)
  • public abstract Optional reduce(BinaryOperator p0)
  • public abstract Stream skip(long p0)
  • public abstract Stream sorted()
  • public abstract Stream sorted(Comparator p0)
  • public abstract Object[] toArray()
  • public abstract Object[] toArray(IntFunction p0)

完全实现的类。
 2 Android T 中不存在(编译时可能无法解析)。
 

java.util.stream


 StreamSupport


  • public static DoubleStream doubleStream(
      Spliterator.OfDouble spliterator,
      boolean parallel)
  • public static DoubleStream doubleStream(
    Supplier supplier,
      int characteristics,
      boolean parallel)
  • public static IntStream intStream(
     Spliterator.OfInt spliterator, boolean parallel)
  • public static IntStream intStream(
    Supplier supplier,
      int characteristics,
      boolean parallel)
  • public static LongStream longStream(
     Spliterator.OfLong spliterator, boolean parallel)
  • public static LongStream longStream(
    Supplier supplier,
      int characteristics,
      boolean parallel)
  • public static Stream stream(
     Spliterator spliterator, boolean parallel)
  • public static Stream stream(
    Supplier supplier,
      int characteristics,
      boolean parallel)

完全实现的类。
 

java.time 自定义

以下是为方便在旧版 Android 设备上运行库而对java.time进行的可能改变行为的修改的摘要。

  • 使用Locale.getDefault()代替Locale.getDefault(Locale.Category.FORMAT)来查找用户偏好。后者方法以及Category枚举是JDK 8中的新增内容。
  • 使用DateFormatSimpleDateFormat来查找解析和格式化模式。通常使用的内部API是JDK 8中的新增内容,在Android上不受支持。ISO纪元的格式化似乎不受影响;非ISO日期和时间计算正确,但使用ISO模式进行格式化(和解析)。
  • 对于内置字段类型,Temporal.getDisplayName(Locale)从不进行本地化,而是始终返回英文名称,例如“Day”、“Week”和“Year”。
  • 同样,在格式化和解析过程中,纪元名称从不进行本地化,因为这些信息在旧版设备上似乎不可用。
  • 格式化和解析仅限于大多数ChronoField常量(季度除外),并且仅支持ISO纪元概念,例如7天制周、12个月制年、公元前和公元纪元等。例如,日本纪元不起作用。“独立”格式也不起作用。所有这些都是由于旧版JDK API中缺少必要的本地化字符串。
  • JapaneseChronology仅部分支持当前的令和时代,这取决于设备上的Android框架和反糖化库版本是否早于令和时代开始(2019年)。
  • HijrahChronology不支持“变体”。Android 8不包含任何此类变体,因此这不会产生任何实际影响。
  • 时区格式化(“打印”)不会在Temporal不包含“秒”的罕见情况下本地化“通用”时区名称。旧版设备上根本没有通用的时区名称,只有“标准”和“夏令时”特定的名称。
  • ZoneRules默认情况下回退到java.util.TimeZone。这有以下限制。请注意,此类中的主要方法ZoneRules.getOffset(Instant)在数据可用时应能准确工作。
    • 在经过测试的设备上,数据通常可追溯到约1900年,因此对18xx年(在使用现代时区之前)的查询可能会返回错误的结果。请注意,第一次夏令时发生在1916年,这通常涵盖在内。
    • getStandardOffset()不适用于给定时区使用与UTC不同偏移量的时间段。因此,isDaylightSavings()getDaylightSavings()也可能在有问题的时期返回错误的结果。
    • nextTransition()previousTransition()速度较慢,但在可用数据范围内似乎准确。
    • getTransitions()getTransitionRules()返回空列表。这与规范一致,但可能令人意外;请改用nextTransition()previousTransition()