public final class AttributeUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Duration |
safeParseDurationMillis(String attribute,
Duration defaultDuration)
Returns the value of the provided string parsed as a duration or returns the fallback value if the attribute
cannot be parsed or is null.
|
public static Duration safeParseDurationMillis(String attribute, Duration defaultDuration)
attribute - the string to parsedefaultDuration - the default duration to be used if the attribute cannot be parsed.Copyright © 2024 Atlassian. All rights reserved.