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

Method of

base/src/main/java/net/time4j/PlainTime.java:1150–1155  ·  view source on GitHub ↗
(int hour)

Source from the content-addressed store, hash-verified

1148 * @throws IllegalArgumentException if given hour is out of range
1149 */
1150 public static PlainTime of(int hour) {
1151
1152 checkHour(hour);
1153 return HOURS[hour];
1154
1155 }
1156
1157 /**
1158 * <p>Creates a wall time with hour and minute. </p>

Callers 15

toStringISOMethod · 0.95
getHourDirectMethod · 0.95
getMinuteDirectMethod · 0.95
getSecondDirectMethod · 0.95
containsWallTimeMethod · 0.95
getWallTimeMethod · 0.95
getMinimumWallTimeMethod · 0.95
getMaximumWallTimeMethod · 0.95
isValidWallTimeMethod · 0.95
withWallTimeMethod · 0.95
withWallTimeNullMethod · 0.95
containsPrecisionMethod · 0.95

Calls 2

checkHourMethod · 0.95
withValueMethod · 0.65

Tested by 15

toStringISOMethod · 0.76
getHourDirectMethod · 0.76
getMinuteDirectMethod · 0.76
getSecondDirectMethod · 0.76
containsWallTimeMethod · 0.76
getWallTimeMethod · 0.76
getMinimumWallTimeMethod · 0.76
getMaximumWallTimeMethod · 0.76
isValidWallTimeMethod · 0.76
withWallTimeMethod · 0.76
withWallTimeNullMethod · 0.76
containsPrecisionMethod · 0.76