Duration.getUnits

Gets the set of units supported by this duration. !(p) The supported units are {@link ChronoUnit#SECONDS SECONDS}, and {@link ChronoUnit#NANOS NANOS}. They are returned _in the order seconds, nanos. !(p) This set can be used _in conjunction with {@link #get(TemporalUnit)} to access the entire state of the duration.

@return a list containing the seconds and nanos units, not null

class Duration
override
getUnits
()

Meta