Modifier and Type | Field and Description |
---|---|
protected Calendar |
calendar |
protected static DatatypeFactory |
datatypeFactory |
protected Locale |
locale |
Constructor and Description |
---|
AbstractInstant() |
AbstractInstant(Calendar calendar,
Locale locale) |
Modifier and Type | Method and Description |
---|---|
Instant |
changeTimeZone(String newTimezone) |
boolean |
equals(Object obj) |
String |
format() |
String |
format(String pattern) |
String |
getTimeZone() |
boolean |
isAfter(Instant date) |
boolean |
isBefore(Instant date) |
Calendar |
toCalendar() |
Date |
toDate() |
XMLGregorianCalendar |
toXMLCalendar() |
Instant |
withLocale(String locale) |
Instant |
withTimeZone(String newTimezone) |
protected Locale locale
protected Calendar calendar
protected static final DatatypeFactory datatypeFactory
public String getTimeZone()
getTimeZone
in interface Instant
public Instant withTimeZone(String newTimezone)
withTimeZone
in interface Instant
public Instant changeTimeZone(String newTimezone)
changeTimeZone
in interface Instant
public Instant withLocale(String locale)
withLocale
in interface Instant
public Calendar toCalendar()
toCalendar
in interface Instant
public XMLGregorianCalendar toXMLCalendar() throws DatatypeConfigurationException
toXMLCalendar
in interface Instant
DatatypeConfigurationException
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.