(int hour)
| 2917 | } |
| 2918 | |
| 2919 | private static byte checkAndCastHour(int hour) |
| 2920 | { |
| 2921 | if (hour < 0 || hour > 23) |
| 2922 | { |
| 2923 | throw new IllegalArgumentException(String.format("Hour %s must be between 0 and 23 inclusive", hour)); |
| 2924 | } |
| 2925 | |
| 2926 | return (byte) hour; |
| 2927 | } |
| 2928 | |
| 2929 | private static byte checkAndCastMinute(int minute) |
| 2930 | { |
no outgoing calls
no test coverage detected