/** Creates a duration instance from the string. */ public static Duration valueOf(String str) { return new Duration(Durations.parse(str)); }