Uses of Class
org.threeten.extra.Years

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

    Fields in org.threeten.extra declared as Years
    Modifier and Type
    Field
    Description
    static final Years
    Years.ONE
    A constant for one year.
    static final Years
    Years.ZERO
    A constant for zero years.
    Methods in org.threeten.extra that return Years
    Modifier and Type
    Method
    Description
    Years.abs()
    Returns a copy of this duration with a positive length.
    static Years
    Years.between(Temporal startDateInclusive, Temporal endDateExclusive)
    Obtains a Years consisting of the number of years between two dates.
    Years.dividedBy(int divisor)
    Returns an instance with the amount divided by the specified divisor.
    static Years
    Years.from(TemporalAmount amount)
    Obtains an instance of Years from a temporal amount.
    Years.minus(int years)
    Returns a copy of this amount with the specified number of years subtracted.
    Years.minus(TemporalAmount amountToSubtract)
    Returns a copy of this amount with the specified amount subtracted.
    Years.multipliedBy(int scalar)
    Returns an instance with the amount multiplied by the specified scalar.
    Years.negated()
    Returns an instance with the amount negated.
    static Years
    Years.of(int years)
    Obtains a Years representing a number of years.
    static Years
    Years.parse(CharSequence text)
    Obtains a Years from a text string such as PnY.
    Years.plus(int years)
    Returns a copy of this amount with the specified number of years added.
    Years.plus(TemporalAmount amountToAdd)
    Returns a copy of this amount with the specified amount added.
    Methods in org.threeten.extra with parameters of type Years
    Modifier and Type
    Method
    Description
    int
    Years.compareTo(Years otherAmount)
    Compares this amount to the specified Years.