Years |
Years.dividedBy(int divisor) |
Returns a new instance with the years divided by the specified divisor.
|
Years |
Years.minus(int years) |
Returns a new instance with the specified number of years taken away.
|
Years |
Years.minus(Years years) |
Returns a new instance with the specified number of years taken away.
|
Years |
Years.multipliedBy(int scalar) |
Returns a new instance with the years multiplied by the specified scalar.
|
Years |
Years.negated() |
Returns a new instance with the years value negated.
|
static Years |
Years.parseYears(java.lang.String periodStr) |
Creates a new Years by parsing a string in the ISO8601 format 'PnY'.
|
Years |
Years.plus(int years) |
Returns a new instance with the specified number of years added.
|
Years |
Years.plus(Years years) |
Returns a new instance with the specified number of years added.
|
static Years |
Years.years(int years) |
Obtains an instance of Years that may be cached.
|
static Years |
Years.yearsBetween(ReadableInstant start,
ReadableInstant end) |
Creates a Years representing the number of whole years
between the two specified datetimes.
|
static Years |
Years.yearsBetween(ReadablePartial start,
ReadablePartial end) |
Creates a Years representing the number of whole years
between the two specified partial datetimes.
|
static Years |
Years.yearsIn(ReadableInterval interval) |
Creates a Years representing the number of whole years
in the specified interval.
|