Package com.okta.sdk.resource.client
Class JavaTimeFormatter
java.lang.Object
com.okta.sdk.resource.client.JavaTimeFormatter
- Direct Known Subclasses:
ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-01-30T09:30:33.152574-06: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
-