Class TimeValueHandler<T extends Temporal>

java.lang.Object
org.tquadrat.foundation.config.cli.CmdLineValueHandler<T>
org.tquadrat.foundation.config.cli.TimeValueHandler<T>
Type Parameters:
T - The type that is handled by this class.
Direct Known Subclasses:
InstantValueHandler, LocalDateTimeValueHandler, LocalDateValueHandler, LocalTimeValueHandler, YearMonthValueHandler, YearValueHandler, ZonedDateTimeValueHandler

@ClassVersion(sourceVersion="$Id: TimeValueHandler.java 1061 2023-09-25 16:32:43Z tquadrat $") @API(status=INTERNAL, since="0.0.1") public abstract class TimeValueHandler<T extends Temporal> extends CmdLineValueHandler<T>

The abstract base class for implementations of CmdLineValueHandler for types that extend Temporal.

Except for InstantValueHandler, the format for the date/time data on the command line can be modified by setting the format parameter of the @Option or @Argument annotation. The value for that parameter has to conform the requirements as for DateTimeFormatter.ofPattern(String).

All implementations do allow the value "now" instead of a concrete date/time value; this will be interpreted always as the current date and/or time.

Author:
Thomas Thrien (thomas.thrien@tquadrat.org)
Version:
$Id: TimeValueHandler.java 1061 2023-09-25 16:32:43Z tquadrat $
Since:
0.0.1
See Also:
UML Diagram
UML Diagram for "org.tquadrat.foundation.config.cli.TimeValueHandler"

UML Diagram for "org.tquadrat.foundation.config.cli.TimeValueHandler"

UML Diagram for "org.tquadrat.foundation.config.cli.TimeValueHandler"