Uses of Class
org.threeten.extra.YearHalf

Packages that use YearHalf
Package
Description
Value types and utilities that extend java.time.*.
  • Uses of YearHalf in org.threeten.extra

    Methods in org.threeten.extra that return YearHalf
    Modifier and Type
    Method
    Description
    static YearHalf
    YearHalf.from(TemporalAccessor temporal)
    Obtains an instance of YearHalf from a temporal object.
    YearHalf.minus(long amountToSubtract, TemporalUnit unit)
    Returns a copy of this year-half with the specified amount subtracted.
    YearHalf.minus(TemporalAmount amountToSubtract)
    Returns a copy of this year-half with the specified amount subtracted.
    YearHalf.minusHalves(long halvesToSubtract)
    Returns a copy of this year-half with the specified period in halves subtracted.
    YearHalf.minusYears(long yearsToSubtract)
    Returns a copy of this year-half with the specified period in years subtracted.
    static YearHalf
    YearHalf.now()
    Obtains the current year-half from the system clock in the default time-zone.
    static YearHalf
    YearHalf.now(Clock clock)
    Obtains the current year-half from the specified clock.
    static YearHalf
    YearHalf.now(ZoneId zone)
    Obtains the current year-half from the system clock in the specified time-zone.
    static YearHalf
    YearHalf.of(int year, int half)
    Obtains an instance of YearHalf from a year and half.
    static YearHalf
    YearHalf.of(int year, Half half)
    Obtains an instance of YearHalf from a year and half.
    static YearHalf
    YearHalf.of(Year year, int half)
    Obtains an instance of YearHalf from a year and half.
    static YearHalf
    YearHalf.of(Year year, Half half)
    Obtains an instance of YearHalf from a year and half.
    static YearHalf
    YearHalf.parse(CharSequence text)
    Obtains an instance of YearHalf from a text string such as 2007-H2.
    static YearHalf
    YearHalf.parse(CharSequence text, DateTimeFormatter formatter)
    Obtains an instance of YearHalf from a text string using a specific formatter.
    YearHalf.plus(long amountToAdd, TemporalUnit unit)
    Returns a copy of this year-half with the specified amount added.
    YearHalf.plus(TemporalAmount amountToAdd)
    Returns a copy of this year-half with the specified amount added.
    YearHalf.plusHalves(long halvesToAdd)
    Returns a copy of this year-half with the specified period in halves added.
    YearHalf.plusYears(long yearsToAdd)
    Returns a copy of this year-half with the specified period in years added.
    YearHalf.with(TemporalAdjuster adjuster)
    Returns an adjusted copy of this year-half.
    YearHalf.with(TemporalField field, long newValue)
    Returns a copy of this year-half with the specified field set to a new value.
    YearHalf.withHalf(int half)
    Returns a copy of this YearHalf with the half-of-year altered.
    YearHalf.withYear(int year)
    Returns a copy of this YearHalf with the year altered.
    Methods in org.threeten.extra that return types with arguments of type YearHalf
    Modifier and Type
    Method
    Description
    YearHalf.halvesUntil(YearHalf endExclusive)
    Returns a sequential ordered stream of year-half.
    Methods in org.threeten.extra with parameters of type YearHalf
    Modifier and Type
    Method
    Description
    int
    YearHalf.compareTo(YearHalf other)
    Compares this year-half to another
    YearHalf.halvesUntil(YearHalf endExclusive)
    Returns a sequential ordered stream of year-half.
    boolean
    YearHalf.isAfter(YearHalf other)
    Is this year-half after the specified year-half.
    boolean
    YearHalf.isBefore(YearHalf other)
    Is this year-half before the specified year-half.