/** * Obtains a {@link Duration} for a specific time. * * @param duration the duration for the {@link Duration} * @param units the {@link TimeUnit}s for the duration of the {@link Duration} * * @return the {@link Duration} */ public static Duration of(long duration, TimeUnit units) { return new Duration(duration, units); }
/** * Obtains a {@link Duration} for a specific time. * * @param duration the duration for the {@link Duration} * @param units the {@link TimeUnit}s for the duration of the {@link Duration} * * @return the {@link Duration} */ public static Duration of(long duration, TimeUnit units) { return new Duration(duration, units); }