Package org.opendatadiscovery.client
Class JavaTimeFormatter
- java.lang.Object
-
- org.opendatadiscovery.client.JavaTimeFormatter
-
- Direct Known Subclasses:
ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-02-27T13:53:41.971284Z[Etc/UTC]") public class JavaTimeFormatter extends java.lang.ObjectClass that add parsing/formatting support for Java 8+OffsetDateTimeclass. It's generated for java clients whenAbstractJavaCodegen#dateLibraryspecified asjava8.
-
-
Constructor Summary
Constructors Constructor Description JavaTimeFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringformatOffsetDateTime(java.time.OffsetDateTime offsetDateTime)Format the givenOffsetDateTimeobject into string.java.time.format.DateTimeFormattergetOffsetDateTimeFormatter()Get the date format used to parse/formatOffsetDateTimeparameters.java.time.OffsetDateTimeparseOffsetDateTime(java.lang.String str)Parse the given string intoOffsetDateTimeobject.voidsetOffsetDateTimeFormatter(java.time.format.DateTimeFormatter offsetDateTimeFormatter)Set the date format used to parse/formatOffsetDateTimeparameters.
-
-
-
Method Detail
-
getOffsetDateTimeFormatter
public java.time.format.DateTimeFormatter getOffsetDateTimeFormatter()
Get the date format used to parse/formatOffsetDateTimeparameters.- Returns:
- DateTimeFormatter
-
setOffsetDateTimeFormatter
public void setOffsetDateTimeFormatter(java.time.format.DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/formatOffsetDateTimeparameters.- Parameters:
offsetDateTimeFormatter-DateTimeFormatter
-
parseOffsetDateTime
public java.time.OffsetDateTime parseOffsetDateTime(java.lang.String str)
Parse the given string intoOffsetDateTimeobject.- Parameters:
str- String- Returns:
OffsetDateTime
-
formatOffsetDateTime
public java.lang.String formatOffsetDateTime(java.time.OffsetDateTime offsetDateTime)
Format the givenOffsetDateTimeobject into string.- Parameters:
offsetDateTime-OffsetDateTime- Returns:
OffsetDateTimein string format
-
-