Package com.hellosign.openapi
Class JavaTimeFormatter
- java.lang.Object
-
- com.hellosign.openapi.JavaTimeFormatter
-
- Direct Known Subclasses:
ApiClient
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") 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(org.threeten.bp.OffsetDateTime offsetDateTime)Format the givenOffsetDateTimeobject into string.org.threeten.bp.format.DateTimeFormattergetOffsetDateTimeFormatter()Get the date format used to parse/formatOffsetDateTimeparameters.org.threeten.bp.OffsetDateTimeparseOffsetDateTime(java.lang.String str)Parse the given string intoOffsetDateTimeobject.voidsetOffsetDateTimeFormatter(org.threeten.bp.format.DateTimeFormatter offsetDateTimeFormatter)Set the date format used to parse/formatOffsetDateTimeparameters.
-
-
-
Method Detail
-
getOffsetDateTimeFormatter
public org.threeten.bp.format.DateTimeFormatter getOffsetDateTimeFormatter()
Get the date format used to parse/formatOffsetDateTimeparameters.- Returns:
- DateTimeFormatter
-
setOffsetDateTimeFormatter
public void setOffsetDateTimeFormatter(org.threeten.bp.format.DateTimeFormatter offsetDateTimeFormatter)
Set the date format used to parse/formatOffsetDateTimeparameters.- Parameters:
offsetDateTimeFormatter-DateTimeFormatter
-
parseOffsetDateTime
public org.threeten.bp.OffsetDateTime parseOffsetDateTime(java.lang.String str)
Parse the given string intoOffsetDateTimeobject.- Parameters:
str- String- Returns:
OffsetDateTime
-
formatOffsetDateTime
public java.lang.String formatOffsetDateTime(org.threeten.bp.OffsetDateTime offsetDateTime)
Format the givenOffsetDateTimeobject into string.- Parameters:
offsetDateTime-OffsetDateTime- Returns:
OffsetDateTimein string format
-
-