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