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

Method readTime

base/src/main/java/net/time4j/SPX.java:360–386  ·  view source on GitHub ↗
(DataInput in)

Source from the content-addressed store, hash-verified

358 }
359
360 private PlainTime readTime(DataInput in)
361 throws IOException {
362
363 int hour = in.readByte();
364
365 if (hour < 0) {
366 return PlainTime.of(~hour);
367 } else {
368 int second = 0, nano = 0;
369 int minute = in.readByte();
370
371 if (minute < 0) {
372 minute = ~minute;
373 } else {
374 second = in.readByte();
375
376 if (second < 0) {
377 second = ~second;
378 } else {
379 nano = in.readInt();
380 }
381 }
382
383 return PlainTime.of(hour, minute, second, nano);
384 }
385
386 }
387
388 private void writeWeekmodel(DataOutput out)
389 throws IOException {

Callers 2

readExternalMethod · 0.95
readTimestampMethod · 0.95

Calls 1

ofMethod · 0.95

Tested by

no test coverage detected