DurationLongConverter
Duration<-> whole-milliseconds Long. Sub-millisecond precision truncates on the way out — the same trade-off as InstantLongConverter (millis are the de-facto wire unit).
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.