Duration.plusNanos

Returns a copy of this duration with the specified duration _in nanoseconds added. !(p) This instance is immutable and unaffected by this method call.

@param nanosToAdd the nanoseconds to add, positive or negative @return a {@code Duration} based on this duration with the specified nanoseconds added, not null @throws ArithmeticException if numeric overflow occurs

class Duration
plusNanos
()

Meta