org.joda.time.convert
Interface PeriodConverter
- Converter
public interface PeriodConverter
PeriodConverter defines how an object is converted to a time period.
- Stephen Colebourne
- Brian S O'Neill
getPeriodType
public PeriodType getPeriodType(Object object)
Selects a suitable period type for the given object.
object
- the object to examine, must not be null
- the period type, never null
setInto
public 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.
period
- the period to modifyobject
- the object to convert, must not be nullchrono
- the chronology to use, must not be null
Copyright (c) 2001-2006 - Joda.org