Period.ofYears

Obtains a {@code Period} representing a number of years. !(p) The resulting period will have the specified years. The months and days units will be zero.

@param years the number of years, positive or negative @return the period of years, not null

class Period
static
ofYears
(
int years
)

Meta