Uses of Class org.joda.time.Years

Uses in package org.joda.time

Fields of type org.joda.time.Years

Years
Constant representing the maximum number of years that can be stored in this object.
Years
Constant representing the minimum number of years that can be stored in this object.
Years
Constant representing one year.
Years
Constant representing three years.
Years
Constant representing two years.
Years
Constant representing zero years.

Methods with parameter type org.joda.time.Years

boolean
Is this years instance greater than the specified number of years.
boolean
Is this years instance less than the specified number of years.
Years
Years.minus(Years years)
Returns a new instance with the specified number of years taken away.
Years
Years.plus(Years years)
Returns a new instance with the specified number of years added.

Methods with return type org.joda.time.Years

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
Returns a new instance with the years value negated.
Years
Years.parseYears(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.
Years
Years.years(int years)
Obtains an instance of Years that may be cached.
Years
Creates a Years representing the number of whole years between the two specified datetimes.
Years
Creates a Years representing the number of whole years between the two specified partial datetimes.
Years
Creates a Years representing the number of whole years in the specified interval.

Copyright (c) 2001-2006 - Joda.org