Class JavaTimeFormatter
java.lang.Object
dev.vality.swag.wallets.webhook.events.JavaTimeFormatter
- Direct Known Subclasses:
ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2023-05-31T03:52:57.575432417Z[Etc/UTC]")
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 Constructor Description JavaTimeFormatter() -
Method Summary
Modifier and Type Method Description StringformatOffsetDateTime(OffsetDateTime offsetDateTime)Format the givenOffsetDateTimeobject into string.DateTimeFormattergetOffsetDateTimeFormatter()Get the date format used to parse/formatOffsetDateTimeparameters.OffsetDateTimeparseOffsetDateTime(String str)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
-