public final class

DateTime

extends Object
java.lang.Object
   ↳ org.mule.modules.google.api.datetime.DateTime

Class Overview

This class wraps an instance of com.google.api.client.util.DateTime adding setter methods that allow to modify the state of the underlaying date time. This setters are needed for compatibility with Mule's Data Mapper. Notice that this turns this class mutable in opposition to the underlying one which is unmutable. Mutating this class implies that the underlying instance will be re assigned so be careful when handling the wrapped!!

Summary

Fields
private DateTime wrapped
Public Constructors
DateTime(Date date, TimeZone zone)
DateTime(long value)
DateTime(DateTime value)
DateTime(Date value)
DateTime(long value, Integer tzShift)
DateTime(boolean dateOnly, long value, Integer tzShift)
DateTime()
Public Methods
boolean equals(Object o)
Integer getTimeZoneShift()
long getValue()
DateTime getWrapped()
int hashCode()
boolean isDateOnly()
void setTimeZoneShift(Integer tzShift)
void setValue(long value)
void setValue(long value, int tzShift)
String toString()
String toStringRfc3339()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

private DateTime wrapped

Public Constructors

public DateTime (Date date, TimeZone zone)

Parameters
date
zone

public DateTime (long value)

Parameters
value

public DateTime (DateTime value)

Parameters
value

public DateTime (Date value)

Parameters
value

public DateTime (long value, Integer tzShift)

Parameters
value
tzShift

public DateTime (boolean dateOnly, long value, Integer tzShift)

Parameters
dateOnly
value
tzShift

public DateTime ()

Public Methods

public boolean equals (Object o)

Parameters
o

public Integer getTimeZoneShift ()

public long getValue ()

public DateTime getWrapped ()

public int hashCode ()

public boolean isDateOnly ()

public void setTimeZoneShift (Integer tzShift)

Parameters
tzShift

public void setValue (long value)

Parameters
value

public void setValue (long value, int tzShift)

Parameters
value
tzShift

public String toString ()

public String toStringRfc3339 ()