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

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

下表是可搜索的,显示了在使用最新版本的 Android Gradle 插件时,将 coreLibraryDesugaring 依赖项设置为 com.android.tools:desugar_jdk_libs:1.1.8(在 build.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)

某些方法 (9 个) 在 Android T 中存在,但在 Android 较低版本中不支持。

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)

Android T 中的一些方法 (2) 不受支持。

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()
  • 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)
  • 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)
  • 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)
  • 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)
  • 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)
  • public abstract ChronoLocalDate toLocalDate()
  • public abstract LocalTime toLocalTime()
  • public abstract String toString()
  • public ChronoLocalDateTime with(
     TemporalAdjuster adjuster)
  • public abstract ChronoLocalDateTime with(
     TemporalField p0, long p1)

完整实现的类。
 

java.time.chrono
参见自定义项

 ChronoPeriod


  • public abstract Temporal addTo(Temporal p0)
  • public static ChronoPeriod between(
      ChronoLocalDate startDateInclusive,
      ChronoLocalDate endDateExclusive)
  • 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)
  • public abstract String toString()

完整实现的类。
 

java.time.chrono
参见自定义项

 ChronoZonedDateTime


  • public int compareTo(ChronoZonedDateTime other)
  • 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)
  • public boolean isBefore(ChronoZonedDateTime other)
  • public boolean isEqual(ChronoZonedDateTime other)
  • public abstract boolean isSupported(
     TemporalField p0)
  • 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()
  • public abstract ChronoLocalDateTime toLocalDateTime()
  • public LocalTime toLocalTime()
  • public abstract String toString()
  • public ChronoZonedDateTime with(
     TemporalAdjuster adjuster)
  • public abstract ChronoZonedDateTime with(
     TemporalField p0, long p1)
  • public abstract ChronoZonedDateTime withEarlierOffsetAtOverlap()
  • public abstract ChronoZonedDateTime withLaterOffsetAtOverlap()
  • public abstract ChronoZonedDateTime withZoneSameInstant(
     ZoneId p0)
  • public abstract ChronoZonedDateTime withZoneSameLocal(
     ZoneId p0)

完整实现的类。
 

java.time.chrono
参见自定义项

 纪年法 (Chronology)


  • public abstract int compareTo(Chronology p0)
  • public abstract ChronoLocalDate date(
     int p0, int p1, int p2)
  • public ChronoLocalDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public abstract ChronoLocalDate date(
     TemporalAccessor p0)
  • public abstract ChronoLocalDate dateEpochDay(
     long p0)
  • public ChronoLocalDate dateNow()
  • public ChronoLocalDate dateNow(Clock clock)
  • public ChronoLocalDate dateNow(ZoneId zone)
  • public abstract ChronoLocalDate dateYearDay(
     int p0, int p1)
  • public ChronoLocalDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • 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)
  • public static Chronology ofLocale(
     java.util.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)
  • 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)
  • public HijrahDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public HijrahDate date(TemporalAccessor temporal)
  • public HijrahDate dateEpochDay(long epochDay)
  • public HijrahDate dateNow()
  • public HijrahDate dateNow(Clock clock)
  • public HijrahDate dateNow(ZoneId zone)
  • public HijrahDate dateYearDay(
     int prolepticYear, int dayOfYear)
  • public HijrahDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • public HijrahEra eraOf(int eraValue)
  • public java.util.List eras()
  • 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)
  • 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)
  • public boolean equals(Object obj)
  • public static HijrahDate from(
     TemporalAccessor temporal)
  • public HijrahChronology getChronology()
  • public HijrahEra getEra()
  • 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()
  • public static HijrahDate now(Clock clock)
  • public static HijrahDate now(ZoneId zone)
  • public static HijrahDate of(
     int prolepticYear, int month, int dayOfMonth)
  • 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)
  • 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)
  • public ValueRange range(TemporalField field)
  • public static HijrahEra valueOf(String name)
  • public static HijrahEra[] values()

某些方法 (1) 在 Android T 中存在,但不受支持。

java.time.chrono
参见自定义项

 ISO 纪年法 (IsoChronology)


  • public static final IsoChronology INSTANCE
  • public LocalDate date(
     int prolepticYear, int month, int dayOfMonth)
  • public LocalDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public LocalDate date(TemporalAccessor temporal)
  • public LocalDate dateEpochDay(long epochDay)
  • public LocalDate dateNow()
  • public LocalDate dateNow(Clock clock)
  • public LocalDate dateNow(ZoneId zone)
  • public LocalDate dateYearDay(
     int prolepticYear, int dayOfYear)
  • public LocalDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • public IsoEra eraOf(int eraValue)
  • public java.util.List eras()
  • 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)
  • public LocalDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle)
  • public ZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完整实现的类。
 

java.time.chrono
参见自定义项

 ISO 纪元 (IsoEra)


  • public static final IsoEra BCE
  • public static final IsoEra CE
  • public int getValue()
  • public static IsoEra of(int isoEra)
  • public static IsoEra valueOf(String name)
  • public static IsoEra[] values()

完整实现的类。
 

java.time.chrono
参见自定义项

 日本纪年法 (JapaneseChronology)


  • public static final JapaneseChronology INSTANCE
  • public JapaneseDate date(
     int prolepticYear, int month, int dayOfMonth)
  • public JapaneseDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public JapaneseDate date(TemporalAccessor temporal)
  • public JapaneseDate dateEpochDay(long epochDay)
  • public JapaneseDate dateNow()
  • public JapaneseDate dateNow(Clock clock)
  • public JapaneseDate dateNow(ZoneId zone)
  • public JapaneseDate dateYearDay(
     int prolepticYear, int dayOfYear)
  • public JapaneseDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • public JapaneseEra eraOf(int eraValue)
  • public java.util.List eras()
  • 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)
  • 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)
  • public boolean equals(Object obj)
  • public static JapaneseDate from(
     TemporalAccessor temporal)
  • public JapaneseChronology getChronology()
  • public JapaneseEra getEra()
  • 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()
  • public static JapaneseDate now(Clock clock)
  • public static JapaneseDate now(ZoneId zone)
  • public static JapaneseDate of(
     int prolepticYear, int month, int dayOfMonth)
  • 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)
  • 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)
  • public ValueRange range(TemporalField field)
  • public String toString()
  • public static JapaneseEra valueOf(
     String japaneseEra)
  • public static JapaneseEra[] values()

完整实现的类。
 

java.time.chrono
参见自定义项

 中华民国纪年法 (MinguoChronology)


  • public static final MinguoChronology INSTANCE
  • public MinguoDate date(
     int prolepticYear, int month, int dayOfMonth)
  • public MinguoDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public MinguoDate date(TemporalAccessor temporal)
  • public MinguoDate dateEpochDay(long epochDay)
  • public MinguoDate dateNow()
  • public MinguoDate dateNow(Clock clock)
  • public MinguoDate dateNow(ZoneId zone)
  • public MinguoDate dateYearDay(
     int prolepticYear, int dayOfYear)
  • public MinguoDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • public MinguoEra eraOf(int eraValue)
  • public java.util.List eras()
  • 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)
  • 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)
  • public boolean equals(Object obj)
  • public static MinguoDate from(
     TemporalAccessor temporal)
  • public MinguoChronology getChronology()
  • public MinguoEra getEra()
  • 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()
  • public static MinguoDate now(Clock clock)
  • public static MinguoDate now(ZoneId zone)
  • public static MinguoDate of(
     int prolepticYear, int month, int dayOfMonth)
  • 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)
  • public MinguoDate with(TemporalAdjuster adjuster)
  • public MinguoDate with(
     TemporalField field, long newValue)

完整实现的类。
 

java.time.chrono
参见自定义项

 中华民国纪元 (MinguoEra)


  • public static final MinguoEra BEFORE_ROC
  • public static final MinguoEra ROC
  • public int getValue()
  • public static MinguoEra of(int minguoEra)
  • public static MinguoEra valueOf(String name)
  • public static MinguoEra[] values()

某些方法 (1) 在 Android T 中存在,但不受支持。

java.time.chrono
参见自定义项

 泰国佛历纪年法 (ThaiBuddhistChronology)


  • public static final ThaiBuddhistChronology INSTANCE
  • public ThaiBuddhistDate date(
     int prolepticYear, int month, int dayOfMonth)
  • public ThaiBuddhistDate date(
     Era era, int yearOfEra, int month, int dayOfMonth)
  • public ThaiBuddhistDate date(
     TemporalAccessor temporal)
  • public ThaiBuddhistDate dateEpochDay(long epochDay)
  • public ThaiBuddhistDate dateNow()
  • public ThaiBuddhistDate dateNow(Clock clock)
  • public ThaiBuddhistDate dateNow(ZoneId zone)
  • public ThaiBuddhistDate dateYearDay(
     int prolepticYear, int dayOfYear)
  • public ThaiBuddhistDate dateYearDay(
     Era era, int yearOfEra, int dayOfYear)
  • public ThaiBuddhistEra eraOf(int eraValue)
  • public java.util.List eras()
  • 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)
  • public ThaiBuddhistDate resolveDate(
      java.util.Map fieldValues,
      ResolverStyle resolverStyle)
  • public ChronoZonedDateTime zonedDateTime(
     Instant instant, ZoneId zone)
  • public ChronoZonedDateTime zonedDateTime(
     TemporalAccessor temporal)

完整实现的类。
 

java.time.chrono
参见自定义项

 泰国佛历日期 (ThaiBuddhistDate)


  • public final ChronoLocalDateTime atTime(
     LocalTime localTime)
  • public boolean equals(Object obj)
  • public static ThaiBuddhistDate from(
     TemporalAccessor temporal)
  • public ThaiBuddhistChronology getChronology()
  • public ThaiBuddhistEra getEra()
  • public long getLong(TemporalField field)
  • public int hashCode()
  • public int lengthOfMonth()
  • public ThaiBuddhistDate minus(
     long amountToAdd, TemporalUnit unit)
  • public ThaiBuddhistDate minus(TemporalAmount amount)
  • public static ThaiBuddhistDate now()
  • public static ThaiBuddhistDate now(Clock clock)
  • public static ThaiBuddhistDate now(ZoneId zone)
  • public static ThaiBuddhistDate of(
     int prolepticYear, int month, int dayOfMonth)
  • public ThaiBuddhistDate plus(
     long amountToAdd, TemporalUnit unit)
  • public ThaiBuddhistDate plus(TemporalAmount amount)
  • public ValueRange range(TemporalField field)
  • public long toEpochDay()
  • public ChronoPeriod until(ChronoLocalDate endDate)
  • public ThaiBuddhistDate with(
     TemporalAdjuster adjuster)
  • public ThaiBuddhistDate with(
     TemporalField field, long newValue)

完整实现的类。
 

java.time.chrono
参见自定义项

 泰国佛历纪元 (ThaiBuddhistEra)


  • public static final ThaiBuddhistEra BE
  • public static final ThaiBuddhistEra BEFORE_BE
  • public int getValue()
  • public static ThaiBuddhistEra of(
     int thaiBuddhistEra)
  • public static ThaiBuddhistEra valueOf(String name)
  • public static ThaiBuddhistEra[] values()

某些方法 (1) 在 Android T 中存在,但不受支持。

java.time.format


参见自定义项

日期时间格式化器


  • 公共静态最终 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
  • 公共字符串格式(时间访问器时间)
  • 公共无效格式到(
    时间访问器时间,可追加附加)
  • public Chronology getChronology()
  • 公共 DecimalStyle 获取十进制样式()
  • 公共 java.util.Locale 获取语言环境()
  • 公共 java.util.Set 获取解析器字段()
  • 公共 ResolverStyle 获取解析器样式()
  • public ZoneId getZone()
  • 公共静态 DateTimeFormatter ofLocalizedDate(
    格式样式日期样式)
  • 公共静态 DateTimeFormatter ofLocalizedDateTime(
    格式样式 dateTimeStyle)
  • 公共静态 DateTimeFormatter ofLocalizedDateTime(
    格式样式日期样式,格式样式时间样式)
  • 公共静态 DateTimeFormatter ofLocalizedTime(
    格式样式时间样式)
  • 公共静态 DateTimeFormatter ofPattern(
    字符串模式)
  • 公共静态 DateTimeFormatter ofPattern(
    字符串模式,java.util.Locale 语言环境)
  • 公共对象解析(
    CharSequence 文本,时间查询查询)
  • 公共时间访问器解析(CharSequence 文本)
  • 公共时间访问器解析(
    CharSequence 文本,
    java.text.ParsePosition 位置)
  • 公共时间访问器解析最佳(
    CharSequence 文本,时间查询[] 查询)
  • 公共时间访问器解析未解析(
    CharSequence 文本,
    java.text.ParsePosition 位置)
  • 公共静态最终时间查询解析超额天数()
  • 公共静态最终时间查询解析闰秒()
  • 公共 java.text.Format toFormat()
  • 公共 java.text.Format toFormat(
    时间查询解析查询)
  • public String toString()
  • 公共 DateTimeFormatter withChronology(
    年表纪年)
  • 公共 DateTimeFormatter withDecimalStyle(
    十进制样式十进制样式)
  • 公共 DateTimeFormatter withLocale(
     java.util.Locale locale)
  • 公共 DateTimeFormatter withResolverFields(
    java.util.Set 解析器字段)
  • 公共 DateTimeFormatter withResolverFields(
    时间字段[] 解析器字段)
  • 公共 DateTimeFormatter withResolverStyle(
    解析器样式解析器样式)
  • 公共 DateTimeFormatter withZone(ZoneId 区域)

完整实现的类。
 

java.time.format


参见自定义项

DateTimeFormatterBuilder


  • 公共 DateTimeFormatterBuilder()
  • 公共 DateTimeFormatterBuilder 附加(
    DateTimeFormatter 格式化程序)
  • 公共 DateTimeFormatterBuilder 附加纪年 ID()
  • 公共 DateTimeFormatterBuilder 附加纪年文本(
    文本样式文本样式)
  • 公共 DateTimeFormatterBuilder 附加分数(
    时间字段字段,
    整数最小宽度,
    整数最大宽度,
    布尔型小数点)
  • 公共 DateTimeFormatterBuilder 附加瞬时()
  • 公共 DateTimeFormatterBuilder 附加瞬时(
    整数小数位数)
  • 公共 DateTimeFormatterBuilder 附加文字(
    字符文字)
  • 公共 DateTimeFormatterBuilder 附加文字(
    字符串文字)
  • 公共 DateTimeFormatterBuilder 附加本地化(
    格式样式日期样式,格式样式时间样式)
  • 公共 DateTimeFormatterBuilder 附加本地化偏移量(
    文本样式样式)
  • 公共 DateTimeFormatterBuilder 附加偏移量(
    字符串模式,字符串无偏移量文本)
  • 公共 DateTimeFormatterBuilder 附加偏移量 ID()
  • 公共 DateTimeFormatterBuilder 附加可选(
    DateTimeFormatter 格式化程序)
  • 公共 DateTimeFormatterBuilder 附加模式(
    字符串模式)
  • 公共 DateTimeFormatterBuilder 附加文本(
    时间字段字段)
  • 公共 DateTimeFormatterBuilder 附加文本(
    时间字段字段,文本样式文本样式)
  • 公共 DateTimeFormatterBuilder 附加文本(
    时间字段字段,java.util.Map 文本查找)
  • 公共 DateTimeFormatterBuilder 附加值(
    时间字段字段)
  • 公共 DateTimeFormatterBuilder 附加值(
    时间字段字段,整数宽度)
  • 公共 DateTimeFormatterBuilder 附加值(
    时间字段字段,
    整数最小宽度,
    整数最大宽度,
    符号样式符号样式)
  • 公共 DateTimeFormatterBuilder 附加值缩减(
    时间字段字段,
    整数宽度,
    整数最大宽度,
    整数基值)
  • 公共 DateTimeFormatterBuilder 附加值缩减(
    时间字段字段,
    整数宽度,
    整数最大宽度,
    纪年 LocalDate 基日期)
  • 公共 DateTimeFormatterBuilder 附加 ZoneId()
  • 公共 DateTimeFormatterBuilder 附加区域或偏移量 ID()
  • 公共 DateTimeFormatterBuilder 附加区域区域 ID()
  • 公共 DateTimeFormatterBuilder 附加区域文本(
    文本样式文本样式)
  • 公共 DateTimeFormatterBuilder 附加区域文本(
    文本样式文本样式,java.util.Set 首选区域)
  • 公共静态字符串 getLocalizedDateTimePattern(
    格式样式日期样式,
    格式样式时间样式,
    年表纪年,
    java.util.Locale 语言环境)
  • 公共 DateTimeFormatterBuilder 可选结束()
  • 公共 DateTimeFormatterBuilder 可选开始()
  • 公共 DateTimeFormatterBuilder 填充下一个(
    整数填充宽度)
  • 公共 DateTimeFormatterBuilder 填充下一个(
    整数填充宽度,字符填充字符)
  • 公共 DateTimeFormatterBuilder 解析不区分大小写()
  • 公共 DateTimeFormatterBuilder 解析区分大小写()
  • 公共 DateTimeFormatterBuilder 解析默认为(
    时间字段字段,长整型值)
  • 公共 DateTimeFormatterBuilder 解析宽松()
  • 公共 DateTimeFormatterBuilder 解析严格()
  • 公共 DateTimeFormatter toFormatter()
  • 公共 DateTimeFormatter toFormatter(
     java.util.Locale locale)

完整实现的类。
 

java.time.format


参见自定义项

DateTimeParseException


  • 公共 DateTimeParseException(
    字符串消息,
    CharSequence 解析数据,
    整数错误索引)
  • 公共 DateTimeParseException(
    字符串消息,
    CharSequence 解析数据,
    整数错误索引,
    可抛出原因)
  • 公共整数 getErrorIndex()
  • 公共字符串 getParsedString()

完整实现的类。
 

java.time.format


参见自定义项

十进制样式


  • 公共静态最终十进制样式标准
  • public boolean equals(Object obj)
  • 公共静态 java.util.Set getAvailableLocales()
  • 公共字符 getDecimalSeparator()
  • 公共字符 getNegativeSign()
  • 公共字符 getPositiveSign()
  • 公共字符 getZeroDigit()
  • public int hashCode()
  • 公共静态十进制样式 of(
     java.util.Locale locale)
  • 公共静态十进制样式 ofDefaultLocale()
  • public String toString()
  • 公共十进制样式 withDecimalSeparator(
    字符十进制分隔符)
  • 公共十进制样式 withNegativeSign(
    字符负号)
  • 公共十进制样式 withPositiveSign(
    字符正号)
  • 公共十进制样式 withZeroDigit(字符零位数字)

完整实现的类。
 

java.time.format


参见自定义项

格式样式


  • 公共静态最终格式样式完整
  • 公共静态最终格式样式长
  • 公共静态最终格式样式中
  • 公共静态最终格式样式短
  • 公共静态格式样式 valueOf(字符串名称)
  • 公共静态格式样式[] values()

完整实现的类。
 

java.time.format


参见自定义项

解析器样式


  • 公共静态最终解析器样式宽松
  • 公共静态最终解析器样式智能
  • 公共静态最终解析器样式严格
  • 公共静态解析器样式 valueOf(字符串名称)
  • 公共静态解析器样式[] values()

完整实现的类。
 

java.time.format


参见自定义项

符号样式


  • 公共静态最终符号样式始终
  • 公共静态最终符号样式超过填充
  • 公共静态最终符号样式从不
  • 公共静态最终符号样式正常
  • 公共静态最终符号样式非负
  • 公共静态符号样式 valueOf(字符串名称)
  • 公共静态符号样式[] values()

完整实现的类。
 

java.time.format


参见自定义项

文本样式


  • 公共静态最终文本样式完整
  • 公共静态最终文本样式完整独立
  • 公共静态最终文本样式窄
  • 公共静态最终文本样式窄独立
  • 公共静态最终文本样式短
  • 公共静态最终文本样式短独立
  • 公共文本样式 asNormal()
  • 公共文本样式 asStandalone()
  • 公共布尔型 isStandalone()
  • 公共静态文本样式 valueOf(字符串名称)
  • 公共静态文本样式[] values()

完整实现的类。
 

java.time.temporal
参见自定义项

纪年字段


  • 公共静态最终纪年字段对齐月份中的星期几
  • 公共静态最终纪年字段对齐年份中的星期几
  • 公共静态最终纪年字段对齐月份中的星期
  • 公共静态最终纪年字段对齐年份中的星期
  • 公共静态最终纪年字段一天中的上午/下午
  • 公共静态最终纪年字段上午/下午的时钟小时
  • 公共静态最终纪年字段一天中的时钟小时
  • 公共静态最终纪年字段月份中的天数
  • 公共静态最终纪年字段星期几
  • 公共静态最终纪年字段年份中的天数
  • 公共静态最终纪年字段纪元日
  • 公共静态最终纪年字段纪元
  • 公共静态最终纪年字段上午/下午的小时
  • 公共静态最终纪年字段一天中的小时
  • 公共静态最终纪年字段瞬时秒
  • 公共静态最终纪年字段一天中的微秒
  • 公共静态最终纪年字段秒中的微秒
  • 公共静态最终纪年字段一天中的毫秒
  • 公共静态最终纪年字段秒中的毫秒
  • 公共静态最终纪年字段一天中的分钟
  • 公共静态最终纪年字段小时中的分钟
  • 公共静态最终纪年字段年份中的月份
  • 公共静态最终纪年字段一天中的纳秒
  • 公共静态最终纪年字段秒中的纳秒
  • 公共静态最终纪年字段偏移秒
  • 公共静态最终纪年字段前推月份
  • 公共静态最终纪年字段一天中的秒数
  • 公共静态最终纪年字段分钟中的秒数
  • 公共静态最终纪年字段年份
  • 公共静态最终纪年字段纪元中的年份
  • 公共时间调整到(
    时间时间,长整型新值)
  • 公共整数 checkValidIntValue(长整型值)
  • 公共长整型 checkValidValue(长整型值)
  • 公共时间单位 getBaseUnit()
  • public String getDisplayName(
     java.util.Locale locale)
  • 公共长整型 getFrom(时间访问器时间)
  • 公共时间单位 getRangeUnit()
  • 公共布尔型 isDateBased()
  • 公共布尔型 isSupportedBy(
     TemporalAccessor temporal)
  • 公共布尔型 isTimeBased()
  • 公共值范围范围()
  • 公共值范围 rangeRefinedBy(
     TemporalAccessor temporal)
  • public String toString()
  • 公共静态纪年字段 valueOf(字符串名称)
  • 公共静态纪年字段[] values()

完整实现的类。
 

java.time.temporal
参见自定义项

纪年单位


  • 公共静态最终纪年单位世纪
  • 公共静态最终纪年单位天
  • 公共静态最终纪年单位十年
  • 公共静态最终纪年单位纪元
  • 公共静态最终纪年单位永远
  • 公共静态最终纪年单位半天
  • 公共静态最终纪年单位小时
  • 公共静态最终纪年单位微秒
  • 公共静态最终纪年单位千年
  • 公共静态最终纪年单位毫秒
  • 公共静态最终纪年单位分钟
  • 公共静态最终纪年单位月
  • 公共静态最终纪年单位纳秒
  • 公共静态最终纪年单位秒
  • 公共静态最终纪年单位周
  • 公共静态最终纪年单位年
  • 公共时间添加到(
    时间时间,长整型数量)
  • 公共长整型之间(
    时间时间1包含,
    时间时间2独占)
  • 公共持续时间 getDuration()
  • 公共布尔型 isDateBased()
  • 公共布尔型 isDurationEstimated()
  • 公共布尔型 isSupportedBy(时间时间)
  • 公共布尔型 isTimeBased()
  • public String toString()
  • 公共静态纪年单位 valueOf(字符串名称)
  • 公共静态纪年单位[] values()

完整实现的类。
 

java.time.temporal
参见自定义项

IsoFields


  • 公共静态最终时间字段季度中的天数
  • 公共静态最终时间字段年份中的季度
  • 公共静态最终时间单位季度
  • 公共静态最终时间字段基于周的年份
  • 公共静态最终时间单位基于周的年
  • 公共静态最终时间字段基于周的年份中的周

完整实现的类。
 

java.time.temporal
参见自定义项

JulianFields


  • 公共静态最终时间字段儒略日
  • 公共静态最终时间字段修正儒略日
  • 公共静态最终时间字段 Rata Die

完整实现的类。
 

java.time.temporal
参见自定义项

时间


  • 公共抽象布尔型 isSupported(时间单位p0)
  • 公共时间减去(
     long amountToSubtract, TemporalUnit unit)
  • 公共时间减去(时间数量数量)
  • 公共抽象时间加(
     long p0, TemporalUnit p1)
  • 公共时间加(时间数量数量)
  • public abstract long until(
     Temporal p0, TemporalUnit p1)
  • 公共时间 with(时间调整器调整器)
  • 公共抽象时间 with(
     TemporalField p0, long p1)

完整实现的类。
 

java.time.temporal
参见自定义项

时间访问器


  • public int get(TemporalField field)
  • 公共抽象长整型 getLong(时间字段p0)
  • public abstract boolean isSupported(
     TemporalField p0)
  • public Object query(TemporalQuery query)
  • public ValueRange range(TemporalField field)

完整实现的类。
 

java.time.temporal
参见自定义项

时间调整器


  • 公共抽象时间 adjustInto(时间p0)

完整实现的类。
 

java.time.temporal
参见自定义项

时间调整器


  • 公共静态时间调整器 dayOfWeekInMonth(
    整数序数,星期几星期几)
  • 公共静态时间调整器 firstDayOfMonth()
  • 公共静态时间调整器 firstDayOfNextMonth()
  • 公共静态时间调整器 firstDayOfNextYear()
  • 公共静态时间调整器 firstDayOfYear()
  • 公共静态时间调整器 firstInMonth(
    星期几星期几)
  • 公共静态时间调整器 lastDayOfMonth()
  • 公共静态时间调整器 lastDayOfYear()
  • 公共静态时间调整器 lastInMonth(
    星期几星期几)
  • 公共静态时间调整器 next(
    星期几星期几)
  • 公共静态时间调整器 nextOrSame(
    星期几星期几)
  • 公共静态时间调整器 ofDateAdjuster(
    一元运算符基于日期的调整器)
  • 公共静态时间调整器 previous(
    星期几星期几)
  • 公共静态时间调整器 previousOrSame(
    星期几星期几)

完整实现的类。
 

java.time.temporal
参见自定义项

时间数量


  • public abstract Temporal addTo(Temporal p0)
  • public abstract long get(TemporalUnit p0)
  • public abstract java.util.List getUnits()
  • public abstract Temporal subtractFrom(Temporal p0)

完整实现的类。
 

java.time.temporal
参见自定义项

时间字段


  • 公共抽象时间 adjustInto(
    时间p0,长整型p1)
  • 公共抽象时间单位 getBaseUnit()
  • public String getDisplayName(
     java.util.Locale locale)
  • 公共抽象长整型 getFrom(时间访问器p0)
  • 公共抽象时间单位 getRangeUnit()
  • 公共抽象布尔型 isDateBased()
  • 公共抽象布尔型 isSupportedBy(
     TemporalAccessor p0)
  • 公共抽象布尔型 isTimeBased()
  • 公共抽象值范围范围()
  • 公共抽象值范围 rangeRefinedBy(
     TemporalAccessor p0)
  • 公共时间访问器解析(
      java.util.Map fieldValues,
    时间访问器部分时间,
      ResolverStyle resolverStyle)
  • public abstract String toString()

完整实现的类。
 

java.time.temporal
参见自定义项

时间查询


  • 公共静态时间查询纪年()
  • 公共静态时间查询本地日期()
  • 公共静态时间查询本地时间()
  • 公共静态时间查询偏移量()
  • 公共静态时间查询精度()
  • 公共静态时间查询区域()
  • 公共静态时间查询 ZoneId()

完整实现的类。
 

java.time.temporal
参见自定义项

时间查询


  • 公共抽象对象 queryFrom(
     TemporalAccessor p0)

完整实现的类。
 

java.time.temporal
参见自定义项

时间单位


  • public abstract Temporal addTo(Temporal p0, long p1)
  • public abstract long between(
     Temporal p0, Temporal p1)
  • public abstract Duration getDuration()
  • 公共抽象布尔型 isDateBased()
  • public abstract boolean isDurationEstimated()
  • 公共布尔型 isSupportedBy(时间时间)
  • 公共抽象布尔型 isTimeBased()
  • public abstract String toString()

完整实现的类。
 

java.time.temporal
参见自定义项

 不支持的TemporalTypeException


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

完整实现的类。
 

java.time.temporal
参见自定义项

 值范围


  • 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
参见自定义项

 星期字段


  • public static final WeekFields ISO
  • public static final WeekFields SUNDAY_START
  • 公共静态最终时间单位基于周的年
  • 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)
  • public static WeekFields of(java.util.Locale locale)
  • public String toString()
  • public TemporalField weekBasedYear()
  • public TemporalField weekOfMonth()
  • public TemporalField weekOfWeekBasedYear()
  • public TemporalField weekOfYear()

完整实现的类。
 

java.time.zone
参见自定义项

 时区偏移转换


  • public int compareTo(
     ZoneOffsetTransition transition)
  • public boolean equals(Object other)
  • public LocalDateTime getDateTimeAfter()
  • public LocalDateTime getDateTimeBefore()
  • 公共持续时间 getDuration()
  • public Instant getInstant()
  • 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)
  • public long toEpochSecond()
  • public String toString()

完整实现的类。
 

java.time.zone
参见自定义项

 ZoneOffsetTransitionRule.
 时间定义


  • public static final ZoneOffsetTransitionRule.TimeDefinition STANDARD
  • public static final ZoneOffsetTransitionRule.TimeDefinition UTC
  • public static final ZoneOffsetTransitionRule.TimeDefinition WALL
  • public LocalDateTime createDateTime(
      LocalDateTime dateTime,
      ZoneOffset standardOffset,
      ZoneOffset wallOffset)
  • public static ZoneOffsetTransitionRule.TimeDefinition valueOf(
     String name)
  • public static ZoneOffsetTransitionRule.TimeDefinition[] values()

完整实现的类。
 

java.time.zone
参见自定义项

 时区偏移转换规则


  • public ZoneOffsetTransition createTransition(
     int year)
  • public boolean equals(Object otherRule)
  • public int getDayOfMonthIndicator()
  • public DayOfWeek getDayOfWeek()
  • public LocalTime getLocalTime()
  • 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)
  • public String toString()

完整实现的类。
 

java.time.zone
参见自定义项

 时区规则


  • 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)
  • public static ZoneRules of(
      ZoneOffset baseStandardOffset,
      ZoneOffset baseWallOffset,
      java.util.List standardOffsetTransitionList,
      java.util.List transitionList,
      java.util.List lastRules)
  • public ZoneOffsetTransition previousTransition(
     Instant instant)
  • public String toString()

完整实现的类。
 

java.time.zone
参见自定义项

 时区规则异常


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

完整实现的类。
 

java.util


 数组


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

现有类上的其他方法。
 

java.util


 日历


  • public final java.time.Instant toInstant()

现有类上的其他方法。
 

java.util


 集合


  • public Stream parallelStream()1
  • public boolean removeIf(Predicate filter)
  • public Spliterator spliterator()
  • public Stream stream()
  • public Object[] toArray(
     IntFunction generator)3

现有类上的其他方法。
 1 仅在API级别为21或更高的设备上支持。
 3 在所有 minSDK 级别上都不支持。
 

java.util


 集合


  • public static Map synchronizedMap(Map p0)
  • public static SortedMap synchronizedSortedMap(
     SortedMap p0)

现有类上的其他方法。
 

java.util


 比较器


  • public static Comparator comparing(
     Function keyExtractor)
  • public static Comparator comparing(
     Function keyExtractor, Comparator keyComparator)
  • public static Comparator comparingDouble(
     ToDoubleFunction keyExtractor)
  • public static Comparator comparingInt(
     ToIntFunction keyExtractor)
  • public static Comparator comparingLong(
     ToLongFunction keyExtractor)
  • 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)
  • public Comparator thenComparingInt(
     ToIntFunction keyExtractor)
  • public Comparator thenComparingLong(
     ToLongFunction keyExtractor)

现有类上的其他方法。
 

java.util


 日期


  • public static Date from(java.time.Instant p0)
  • public java.time.Instant toInstant()

现有类上的其他方法。
 

java.util


 双精度数统计摘要


  • public DoubleSummaryStatistics()
  • public void accept(double value)
  • public void combine(DoubleSummaryStatistics other)
  • 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


 格里高利历


  • public static GregorianCalendar from(
     java.time.ZonedDateTime p0)
  • public java.time.ZonedDateTime toZonedDateTime()

现有类上的其他方法。
 

java.util


 整数统计摘要


  • public IntSummaryStatistics()
  • public void accept(int value)
  • public void combine(IntSummaryStatistics other)
  • public final double getAverage()
  • public final long getCount()
  • public final int getMax()
  • public final int getMin()
  • public final long getSum()
  • public String toString()

某些方法 (1) 在 Android T 中存在,但不受支持。

java.util


 迭代器


  • public void forEachRemaining(Consumer action)
  • public void remove()

现有类上的其他方法。
 

java.util


 列表


  • public static List copyOf(Collection p0)
  • public static List of()
  • public static List of(Object p0)
  • public static List of(Object p0, Object p1)
  • public static List of(
     Object p0, Object p1, Object p2)
  • 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,
      Object p6)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8)
  • public static List of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8,
      Object p9)
  • public static List of(Object[] p0)
  • public void replaceAll(UnaryOperator operator)
  • public void sort(Comparator c)
  • public Spliterator spliterator()

现有类上的其他方法。
 

java.util


 长整数统计摘要


  • public LongSummaryStatistics()
  • public void accept(int value)
  • 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()

某些方法 (1) 在 Android T 中存在,但不受支持。

java.util


 映射。
 条目


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

现有类上的其他方法。
 

java.util


 映射


  • 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,
      Object p6,
      Object p7)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8,
      Object p9)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8,
      Object p9,
      Object p10,
      Object p11)
  • public static Map of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object 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,
      Object p6,
      Object p7,
      Object 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,
      Object p6,
      Object p7,
      Object 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,
      Object p6,
      Object p7,
      Object 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


 可选


  • 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


 可选双精度数


  • 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


 可选整数


  • 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)
  • 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,
      Object p6)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8)
  • public static Set of(
      Object p0,
      Object p1,
      Object p2,
      Object p3,
      Object p4,
      Object p5,
      Object p6,
      Object p7,
      Object p8,
      Object p9)
  • public static Set of(Object[] p0)
  • public Spliterator spliterator()

现有类上的其他方法。
 

java.util


 SortedSet


  • public 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()

某些方法 (9 个) 在 Android T 中存在,但在 Android 较低版本中不支持。

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()

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

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(
     long p0, LongBinaryOperator p1)
  • public final long getAndAccumulate(
     long p0, LongBinaryOperator p1)
  • public final long getAndUpdate(LongUnaryOperator p0)
  • public final long updateAndGet(LongUnaryOperator p0)

现有类上的其他方法。
 

java.util.
 concurrent.atomic



 AtomicReference


  • public final Object accumulateAndGet(
     Object p0, BinaryOperator p1)
  • public final Object getAndAccumulate(
     Object 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(
     double p0, double 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(
     Object p0, Object 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(
     Object p0, Object 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)
  • 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(
     Object identity, BinaryOperator op)
  • public static Collector reducing(
     Object 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()

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

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(
     double 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(
     double 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(
     int 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(
     long 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(
     Object 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 自定义

以下是针对 java.time 的一些可能改变行为的修改,以便在旧版 Android 设备上运行库。

  • 使用 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()