| java.lang.Object org.joda.time.convert.AbstractConverter org.joda.time.convert.ReadableIntervalConverter
ReadableIntervalConverter | protected ReadableIntervalConverter()(Code) | | Restricted constructor.
|
getDurationMillis | public long getDurationMillis(Object object)(Code) | | Gets the millisecond length of the interval.
Parameters: object - the interval |
getSupportedType | public Class getSupportedType()(Code) | | Returns ReadableInterval.class.
|
isReadableInterval | public boolean isReadableInterval(Object object, Chronology chrono)(Code) | | Checks if the input is a ReadableInterval.
If it is, then the calling code should cast and copy the fields directly.
Parameters: object - the object to convert, must not be null Parameters: chrono - the chronology to use, may be null true if the input is a ReadableInterval throws: ClassCastException - if the object is invalid |
setInto | public void setInto(ReadWritablePeriod writablePeriod, Object object, Chronology chrono)(Code) | | Sets the values of the mutable duration from the specified interval.
Parameters: writablePeriod - the period to modify Parameters: object - the interval to set from Parameters: chrono - the chronology to use |
setInto | public void setInto(ReadWritableInterval writableInterval, Object object, Chronology chrono)(Code) | | Extracts interval endpoint values from an object of this converter's
type, and sets them into the given ReadWritableInterval.
Parameters: writableInterval - interval to get modified, not null Parameters: object - the object to convert, must not be null Parameters: chrono - the chronology to use, may be null throws: ClassCastException - if the object is invalid |
|
|