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

Method roll

base/src/main/java/net/time4j/Month.java:306–310  ·  view source on GitHub ↗
(int months)

Source from the content-addressed store, hash-verified

304 * @return result of rolling operation
305 */
306 public Month roll(int months) {
307
308 return Month.valueOf((this.ordinal() + (months % 12 + 12)) % 12 + 1);
309
310 }
311
312 /**
313 * <p>Equivalent to the expression

Callers 6

nextMethod · 0.95
previousMethod · 0.95
addToMethod · 0.45
getDefaultMaximumMethod · 0.45
addDaysMethod · 0.45
plusMethod · 0.45

Calls 1

valueOfMethod · 0.95

Tested by

no test coverage detected