Modifier and Type | Method and Description |
---|---|
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.
|
getSupportedType
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 nullClassCastException
- if the object is invalidPeriodType getPeriodType(Object object)
object
- the object to examine, must not be nullClassCastException
- if the object is invalidCopyright © 2002–2024 Joda.org. All rights reserved.