DurationStringConverter
Duration<-> ISO-8601 String ("PT1H30M"). Format via Duration.toIsoString, parse via Duration.parseIsoString — strict ISO only; Kotlin's lenient "1h 30m" form is rejected (wire formats want one canonical representation).
Functions
Link copied to clipboard
Total reverse conversion (T -> S). Override if the direction is supported; the non-overridden default throws with a direction-precise T -> S message.
Link copied to clipboard
Sanctioned-null reverse variant — override to declare inputs with no legitimate counterpart. The default delegates to convertFrom, so plain converters need not override it.
Link copied to clipboard
Sanctioned-null forward variant — override to declare inputs with no legitimate counterpart. The default delegates to convertTo, so plain converters need not override it.