org.mule.el.datetime
Class AbstractInstant
java.lang.Object
org.mule.el.datetime.AbstractInstant
- All Implemented Interfaces:
- Instant
- Direct Known Subclasses:
- DateTime
public abstract class AbstractInstant
- extends Object
- implements Instant
locale
protected Locale locale
calendar
protected Calendar calendar
datatypeFactory
protected static final DatatypeFactory datatypeFactory
AbstractInstant
public AbstractInstant(Calendar calendar,
Locale locale)
isBefore
public boolean isBefore(Instant date)
- Specified by:
isBefore
in interface Instant
isAfter
public boolean isAfter(Instant date)
- Specified by:
isAfter
in interface Instant
format
public String format()
- Specified by:
format
in interface Instant
format
public String format(String pattern)
- Specified by:
format
in interface Instant
getTimeZone
public String getTimeZone()
- Specified by:
getTimeZone
in interface Instant
withTimeZone
public Instant withTimeZone(String newTimezone)
- Specified by:
withTimeZone
in interface Instant
changeTimeZone
public Instant changeTimeZone(String newTimezone)
- Specified by:
changeTimeZone
in interface Instant
withLocale
public Instant withLocale(String locale)
- Specified by:
withLocale
in interface Instant
toCalendar
public Calendar toCalendar()
- Specified by:
toCalendar
in interface Instant
toDate
public Date toDate()
- Specified by:
toDate
in interface Instant
toXMLCalendar
public XMLGregorianCalendar toXMLCalendar()
throws DatatypeConfigurationException
- Specified by:
toXMLCalendar
in interface Instant
- Throws:
DatatypeConfigurationException
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2003-2013 MuleSoft, Inc.. All Rights Reserved.