(
int hour,
int minute,
int second,
int nanosecond,
boolean validating
)
| 1036 | //~ Konstruktoren ----------------------------------------------------- |
| 1037 | |
| 1038 | private PlainTime( |
| 1039 | int hour, |
| 1040 | int minute, |
| 1041 | int second, |
| 1042 | int nanosecond, |
| 1043 | boolean validating |
| 1044 | ) { |
| 1045 | super(); |
| 1046 | |
| 1047 | if (validating) { |
| 1048 | checkHour(hour); |
| 1049 | checkMinute(minute); |
| 1050 | checkSecond(second); |
| 1051 | checkNano(nanosecond); |
| 1052 | |
| 1053 | if ( |
| 1054 | (hour == 24) |
| 1055 | && ((minute | second | nanosecond) != 0) |
| 1056 | ) { |
| 1057 | throw new IllegalArgumentException("T24:00:00 exceeded."); |
| 1058 | } |
| 1059 | } |
| 1060 | |
| 1061 | this.hour = (byte) hour; |
| 1062 | this.minute = (byte) minute; |
| 1063 | this.second = (byte) second; |
| 1064 | this.nano = nanosecond; |
| 1065 | |
| 1066 | } |
| 1067 | |
| 1068 | //~ Methoden ---------------------------------------------------------- |
| 1069 |
nothing calls this directly
no test coverage detected