Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
next
Method · 0.95
previous
Method · 0.95
addTo
Method · 0.45
getDefaultMaximum
Method · 0.45
addDays
Method · 0.45
plus
Method · 0.45
Calls
1
valueOf
Method · 0.95
Tested by
no test coverage detected