| org.joda.time.convert.PeriodConverter
All known Subclasses: org.joda.time.convert.NullConverter, org.joda.time.convert.StringConverter, org.joda.time.convert.ReadableIntervalConverter, org.joda.time.convert.ReadableDurationConverter, org.joda.time.convert.ReadablePeriodConverter,
PeriodConverter | public interface PeriodConverter extends Converter(Code) | | PeriodConverter defines how an object is converted to a time period.
author: Stephen Colebourne author: Brian S O'Neill since: 1.0 |
getPeriodType | PeriodType getPeriodType(Object object)(Code) | | Selects a suitable period type for the given object.
Parameters: object - the object to examine, must not be null the period type, never null throws: ClassCastException - if the object is invalid |
setInto | void setInto(ReadWritablePeriod period, Object object, Chronology chrono)(Code) | | Extracts duration values from an object of this converter's type, and
sets them into the given ReadWritableDuration.
Parameters: period - the period to modify Parameters: object - the object to convert, must not be null Parameters: chrono - the chronology to use, must not be null throws: ClassCastException - if the object is invalid |
|
|