Uses of Class
org.joda.time.Years

Packages that use Years
org.joda.time Provides support for dates, times, time zones, durations, intervals, and partials. 
 

Uses of Years in org.joda.time
 

Fields in org.joda.time declared as Years
static Years Years.MAX_VALUE
          Constant representing the maximum number of years that can be stored in this object.
static Years Years.MIN_VALUE
          Constant representing the minimum number of years that can be stored in this object.
static Years Years.ONE
          Constant representing one year.
static Years Years.THREE
          Constant representing three years.
static Years Years.TWO
          Constant representing two years.
static Years Years.ZERO
          Constant representing zero years.
 

Methods in org.joda.time that return 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 Years.negated()
          Returns a new instance with the years value negated.
static 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.
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.
 

Methods in org.joda.time with parameters of type Years
 boolean Years.isGreaterThan(Years other)
          Is this years instance greater than the specified number of years.
 boolean Years.isLessThan(Years other)
          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.
 



Copyright © 2002-2012 Joda.org. All Rights Reserved.