|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
PeriodConverter defines how an object is converted to a time period.
Method Summary | |
PeriodType |
getPeriodType(Object object)
Selects a suitable period type for the given object. |
void |
setInto(ReadWritablePeriod period,
Object object,
Chronology chrono)
Extracts duration values from an object of this converter's type, and sets them into the given ReadWritableDuration. |
Methods inherited from interface org.joda.time.convert.Converter |
getSupportedType |
Method Detail |
public void setInto(ReadWritablePeriod period, Object object, Chronology chrono)
period
- the period to modifyobject
- the object to convert, must not be nullchrono
- the chronology to use, must not be null
ClassCastException
- if the object is invalidpublic PeriodType getPeriodType(Object object)
object
- the object to examine, must not be null
ClassCastException
- if the object is invalid
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |