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

Method valueOf

base/src/main/java/net/time4j/Month.java:123–131  ·  view source on GitHub ↗
(int month)

Source from the content-addressed store, hash-verified

121 * @throws IllegalArgumentException if given argument is out of range
122 */
123 public static Month valueOf(int month) {
124
125 if ((month < 1) || (month > 12)) {
126 throw new IllegalArgumentException("Out of range: " + month);
127 }
128
129 return ENUMS[month - 1];
130
131 }
132
133 /**
134 * <p>Gets the corresponding numerical value. </p>

Callers 15

valueOf_intMethod · 0.95
readDateMethod · 0.95
getMonthMethod · 0.95
getValueMethod · 0.95
rollMethod · 0.95
fromMethod · 0.95
doApplyMethod · 0.95
getMonthMethod · 0.95
printMethod · 0.95
printMethod · 0.95
getMonthMethod · 0.95
getMinimumMethod · 0.95

Calls

no outgoing calls

Tested by 3

valueOf_intMethod · 0.76
xmlDurationToTime4JMethod · 0.36
xmlDurationFromTime4JMethod · 0.36