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

Method PlainTime

base/src/main/java/net/time4j/PlainTime.java:1038–1066  ·  view source on GitHub ↗
(
        int hour,
        int minute,
        int second,
        int nanosecond,
        boolean validating
    )

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 4

checkHourMethod · 0.95
checkMinuteMethod · 0.95
checkSecondMethod · 0.95
checkNanoMethod · 0.95

Tested by

no test coverage detected