| java.lang.Object org.joda.time.convert.AbstractConverter org.joda.time.convert.ReadablePartialConverter
ReadablePartialConverter | class ReadablePartialConverter extends AbstractConverter implements PartialConverter(Code) | | ReadablePartialConverter extracts partial fields and chronology from a ReadablePartial.
author: Stephen Colebourne since: 1.0 |
ReadablePartialConverter | protected ReadablePartialConverter()(Code) | | Restricted constructor.
|
getChronology | public Chronology getChronology(Object object, DateTimeZone zone)(Code) | | Gets the chronology, which is taken from the ReadablePartial.
Parameters: object - the ReadablePartial 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 ReadablePartial to convert, must not be null Parameters: chrono - the chronology to use, null means use that from object the chronology, never null |
getPartialValues | public int[] getPartialValues(ReadablePartial fieldSource, Object object, Chronology chrono)(Code) | | Extracts the values of the partial from an object of this converter's type.
The chrono parameter is a hint to the converter, should it require a
chronology to aid in conversion.
Parameters: fieldSource - a partial that provides access to the fields.This partial may be incomplete and only getFieldType(int) should be used Parameters: object - the object to convert Parameters: chrono - the chronology to use, which is the non-null result of getChronology() the array of field values that match the fieldSource, must be non-null valid throws: ClassCastException - if the object is invalid |
getSupportedType | public Class getSupportedType()(Code) | | Returns ReadableInstant.class.
ReadableInstant.class |
|
|