Package com.redhat.threescale.rest.cms
Class JavaTimeFormatter
-
- All Implemented Interfaces:
@Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class JavaTimeFormatterClass that add parsing/formatting support for Java 8+
OffsetDateTimeclass. It's generated for java clients whenAbstractJavaCodegen#dateLibraryspecified asjava8.
-
-
Field Summary
Fields Modifier and Type Field Description public DateTimeFormatteroffsetDateTimeFormatter
-
Constructor Summary
Constructors Constructor Description JavaTimeFormatter()
-
Method Summary
Modifier and Type Method Description DateTimeFormattergetOffsetDateTimeFormatter()Get the date format used to parse/format OffsetDateTimeparameters.voidsetOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter)Set the date format used to parse/format OffsetDateTimeparameters.OffsetDateTimeparseOffsetDateTime(String str)Parse the given string into OffsetDateTimeobject.StringformatOffsetDateTime(OffsetDateTime offsetDateTime)Format the given OffsetDateTimeobject into string.-
-
Method Detail
-
getOffsetDateTimeFormatter
DateTimeFormatter getOffsetDateTimeFormatter()
Get the date format used to parse/format
OffsetDateTimeparameters.- Returns:
DateTimeFormatter
-
setOffsetDateTimeFormatter
void setOffsetDateTimeFormatter(DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/format
OffsetDateTimeparameters.- Parameters:
offsetDateTimeFormatter-DateTimeFormatter
-
parseOffsetDateTime
OffsetDateTime parseOffsetDateTime(String str)
Parse the given string into
OffsetDateTimeobject.- Parameters:
str- String- Returns:
OffsetDateTime
-
formatOffsetDateTime
String formatOffsetDateTime(OffsetDateTime offsetDateTime)
Format the given
OffsetDateTimeobject into string.- Parameters:
offsetDateTime-OffsetDateTime- Returns:
OffsetDateTimein string format
-
-
-
-