| java.lang.Object org.joda.time.convert.AbstractConverter org.joda.time.convert.ReadableInstantConverter
ReadableInstantConverter | protected ReadableInstantConverter()(Code) | | Restricted constructor.
|
getChronology | public Chronology getChronology(Object object, DateTimeZone zone)(Code) | | Gets the chronology, which is taken from the ReadableInstant.
If the chronology on the instant is null, the ISOChronology in the
specified time zone is used.
If the chronology on the instant is not in the specified zone, it is
adapted.
Parameters: object - the ReadableInstant to convert, must not be null Parameters: zone - the specified zone to use, null means default zone the chronology, never null |
getChronology | public Chronology getChronology(Object object, Chronology chrono)(Code) | | Gets the chronology, which is taken from the ReadableInstant.
If the passed in chronology is non-null, it is used.
Otherwise the chronology from the instant is used.
Parameters: object - the ReadableInstant to convert, must not be null Parameters: chrono - the chronology to use, null means use that from object the chronology, never null |
getInstantMillis | public long getInstantMillis(Object object, Chronology chrono)(Code) | | Extracts the millis from an object of this convertor's type.
Parameters: object - the ReadableInstant to convert, must not be null Parameters: chrono - the non-null result of getChronology the millisecond value throws: NullPointerException - if the object is null throws: ClassCastException - if the object is an invalid type |
getSupportedType | public Class getSupportedType()(Code) | | Returns ReadableInstant.class.
ReadableInstant.class |
|
|