Package org.openapitools.client
Class JavaTimeFormatter
java.lang.Object
org.openapitools.client.JavaTimeFormatter
- Direct Known Subclasses:
 ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
           date="2023-04-19T09:13:44.263607-05:00[America/Chicago]")
public class JavaTimeFormatter
extends Object
Class that add parsing/formatting support for Java 8+ 
OffsetDateTime class.
 It's generated for java clients when AbstractJavaCodegen#dateLibrary specified as java8.- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionformatOffsetDateTime(OffsetDateTime offsetDateTime) Format the givenOffsetDateTimeobject into string.Get the date format used to parse/formatOffsetDateTimeparameters.Parse the given string intoOffsetDateTimeobject.voidsetOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter) Set the date format used to parse/formatOffsetDateTimeparameters. 
- 
Constructor Details
- 
JavaTimeFormatter
public JavaTimeFormatter() 
 - 
 - 
Method Details
- 
getOffsetDateTimeFormatter
Get the date format used to parse/formatOffsetDateTimeparameters.- Returns:
 - DateTimeFormatter
 
 - 
setOffsetDateTimeFormatter
Set the date format used to parse/formatOffsetDateTimeparameters.- Parameters:
 offsetDateTimeFormatter-DateTimeFormatter
 - 
parseOffsetDateTime
Parse the given string intoOffsetDateTimeobject.- Parameters:
 str- String- Returns:
 OffsetDateTime
 - 
formatOffsetDateTime
Format the givenOffsetDateTimeobject into string.- Parameters:
 offsetDateTime-OffsetDateTime- Returns:
 OffsetDateTimein string format
 
 -