Searched refs:nanosToAdd (Results 1 – 4 of 4) sorted by relevance
900 public Instant plusNanos(long nanosToAdd) { in plusNanos() argument901 return plus(0, nanosToAdd); in plusNanos()915 private Instant plus(long secondsToAdd, long nanosToAdd) { in plus() argument916 if ((secondsToAdd | nanosToAdd) == 0) { in plus()920 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()921 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()922 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
791 public Duration plusNanos(long nanosToAdd) { in plusNanos() argument792 return plus(0, nanosToAdd); in plusNanos()805 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument806 if ((secondsToAdd | nanosToAdd) == 0) { in plus()810 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()811 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()812 long nanoAdjustment = nanos + nanosToAdd; // safe int+NANOS_PER_SECOND in plus()
1137 public LocalTime plusNanos(long nanosToAdd) { in plusNanos() argument1138 if (nanosToAdd == 0) { in plusNanos()1142 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