MCPcopy Index your code
hub / github.com/apache/groovy / getYears

Method getYears

src/main/java/groovy/time/TimeCategory.java:182–184  ·  view source on GitHub ↗

Returns a year-based duration for the supplied number of years. @param self the number of years @return the corresponding duration

(final Integer self)

Source from the content-addressed store, hash-verified

180 * @return the corresponding duration
181 */
182 public static DatumDependentDuration getYears(final Integer self) {
183 return new DatumDependentDuration(self, 0, 0, 0, 0, 0, 0);
184 }
185
186 /**
187 * Alias for {@link #getYears(Integer)}.

Callers 9

getYearMethod · 0.95
positiveMethod · 0.45
minusMethod · 0.45
plusMethod · 0.45
minusMethod · 0.45
minusMethod · 0.45
plusMethod · 0.45
minusMethod · 0.45
getNowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected