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-03-29T16:47:02.065887-05:00[America/Chicago]",
comments="Generator version: 7.4.0")
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
-
Method Summary
Modifier and TypeMethodDescriptionformatOffsetDateTime
(OffsetDateTime offsetDateTime) Format the givenOffsetDateTime
object into string.Get the date format used to parse/formatOffsetDateTime
parameters.Parse the given string intoOffsetDateTime
object.void
setOffsetDateTimeFormatter
(DateTimeFormatter offsetDateTimeFormatter) Set the date format used to parse/formatOffsetDateTime
parameters.
-
Constructor Details
-
JavaTimeFormatter
public JavaTimeFormatter()
-
-
Method Details
-
getOffsetDateTimeFormatter
Get the date format used to parse/formatOffsetDateTime
parameters.- Returns:
- DateTimeFormatter
-
setOffsetDateTimeFormatter
Set the date format used to parse/formatOffsetDateTime
parameters.- Parameters:
offsetDateTimeFormatter
-DateTimeFormatter
-
parseOffsetDateTime
Parse the given string intoOffsetDateTime
object.- Parameters:
str
- String- Returns:
OffsetDateTime
-
formatOffsetDateTime
Format the givenOffsetDateTime
object into string.- Parameters:
offsetDateTime
-OffsetDateTime
- Returns:
OffsetDateTime
in string format
-