Searched refs:nanosToAdd (Results 1 – 4 of 4) sorted by relevance
899 public Instant plusNanos(long nanosToAdd) { in plusNanos() argument900 return plus(0, nanosToAdd); in plusNanos()914 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument915 if ((secondsToAdd | nanosToAdd) == 0) { in plus()919 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()920 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()921 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
794 public Duration plusNanos(long nanosToAdd) { in plusNanos() argument795 return plus(0, nanosToAdd); in plusNanos()808 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument809 if ((secondsToAdd | nanosToAdd) == 0) { in plus()813 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()814 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()815 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
1160 public LocalTime plusNanos(long nanosToAdd) { in plusNanos() argument1161 if (nanosToAdd == 0) { in plusNanos()1165 long newNofd = ((nanosToAdd % NANOS_PER_DAY) + nofd + NANOS_PER_DAY) % NANOS_PER_DAY; in plusNanos()
209 public java.time.Duration plusNanos(long nanosToAdd) { in plusNanos() argument213 private java.time.Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument