Class JavaTimeFormatter
- java.lang.Object
-
- app.cybrid.cybrid_api_bank.client.JavaTimeFormatter
-
- Direct Known Subclasses:
ApiClient
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-04-10T16:27:31.012539Z[Etc/UTC]") public class JavaTimeFormatter extends Object
Class 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 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.
-
-
-
Method Detail
-
getOffsetDateTimeFormatter
public DateTimeFormatter getOffsetDateTimeFormatter()
Get the date format used to parse/formatOffsetDateTimeparameters.- Returns:
- DateTimeFormatter
-
setOffsetDateTimeFormatter
public void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/formatOffsetDateTimeparameters.- Parameters:
offsetDateTimeFormatter-DateTimeFormatter
-
parseOffsetDateTime
public OffsetDateTime parseOffsetDateTime(String str)
Parse the given string intoOffsetDateTimeobject.- Parameters:
str- String- Returns:
OffsetDateTime
-
formatOffsetDateTime
public String formatOffsetDateTime(OffsetDateTime offsetDateTime)
Format the givenOffsetDateTimeobject into string.- Parameters:
offsetDateTime-OffsetDateTime- Returns:
OffsetDateTimein string format
-
-