MCPcopy Create free account
hub / github.com/MenoData/Time4J / years

Method years

base/src/main/java/net/time4j/Duration.java:4023–4028  ·  view source on GitHub ↗
(int num)

Source from the content-addressed store, hash-verified

4021 * @see CalendarUnit#YEARS
4022 */
4023 public Builder years(int num) {
4024
4025 this.set(num, YEARS);
4026 return this;
4027
4028 }
4029
4030 /**
4031 * <p>Adds a month item. </p>

Calls 1

setMethod · 0.95

Tested by 15

ofPositiveBuilderMethod · 0.64
ofNegativeBuilderMethod · 0.64
composeMethod · 0.64
jodaStyleMethod · 0.64
withSTD_PERIODMethod · 0.64