org.aeonbits.owner.Converter<java.time.Duration>public class DurationConverter
extends java.lang.Object
implements org.aeonbits.owner.Converter<java.time.Duration>
Duration objects.
The class supports two formats for the duration string:
Duration.parse(CharSequence) method supports
(see the official Java 8 documentation, although note that currently there is an
error in the documentation).
The implementation will check whether the input string starts with P with an optional plus/minus
prefix and if so, will use this method for parsing.
value time_unit" string where the value is an integer and time_unit
is one of:
Note that the time_unit string is case sensitive.
If no time_unit is specified, milliseconds is assumed.
| Constructor | Description |
|---|---|
DurationConverter() |
| Modifier and Type | Method | Description |
|---|---|---|
java.time.Duration |
convert(java.lang.reflect.Method method,
java.lang.String input) |
Copyright © 2012–2020 Luigi R. Viggiano. All rights reserved.