|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PeriodConverter
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 |
|---|
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 invalidPeriodType 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 | |||||||||