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()
793 public Duration plusNanos(long nanosToAdd) { in plusNanos() argument794 return plus(0, nanosToAdd); in plusNanos()807 private Duration plus(long secondsToAdd, long nanosToAdd) { in plus() argument808 if ((secondsToAdd | nanosToAdd) == 0) { in plus()812 epochSec = Math.addExact(epochSec, nanosToAdd / NANOS_PER_SECOND); in plus()813 nanosToAdd = nanosToAdd % NANOS_PER_SECOND; in plus()814 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