Package com.beust.jcommander.converters
Class OffsetDateTimeConverter
java.lang.Object
com.beust.jcommander.converters.BaseConverter<OffsetDateTime>
com.beust.jcommander.converters.JavaTimeConverter<OffsetDateTime>
com.beust.jcommander.converters.OffsetDateTimeConverter
- All Implemented Interfaces:
IStringConverter<OffsetDateTime>
Converter for
OffsetDateTime.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected OffsetDateTimeparse(String value, DateTimeFormatter formatter) Parse the value using the specified formatter.protected Set<DateTimeFormatter> Supported formats for this type, e.g.Methods inherited from class com.beust.jcommander.converters.JavaTimeConverter
convertMethods inherited from class com.beust.jcommander.converters.BaseConverter
getErrorString, getOptionName
-
Constructor Details
-
OffsetDateTimeConverter
-
-
Method Details
-
supportedFormats
Description copied from class:JavaTimeConverterSupported formats for this type, e.g.HH:mm:ss- Specified by:
supportedFormatsin classJavaTimeConverter<OffsetDateTime>- Returns:
- a set of supported formats
-
parse
Description copied from class:JavaTimeConverterParse the value using the specified formatter.- Specified by:
parsein classJavaTimeConverter<OffsetDateTime>- Parameters:
value- value to parseformatter- formatter specifying supported format- Returns:
- parsed value
-