| org.joda.time.convert.IntervalConverter
All known Subclasses: org.joda.time.convert.NullConverter, org.joda.time.convert.StringConverter, org.joda.time.convert.ReadableIntervalConverter,
IntervalConverter | public interface IntervalConverter extends Converter(Code) | | IntervalConverter defines how an object is converted to an interval.
author: Brian S O'Neill author: Stephen Colebourne since: 1.0 |
isReadableInterval | boolean isReadableInterval(Object object, Chronology chrono)(Code) | | Checks if the input is a ReadableInterval.
If it is, then the calling code should cast and copy the fields directly.
Parameters: object - the object to convert, must not be null Parameters: chrono - the chronology to use, may be null true if the input is a ReadableInterval throws: ClassCastException - if the object is invalid |
setInto | void setInto(ReadWritableInterval writableInterval, Object object, Chronology chrono)(Code) | | Extracts interval endpoint values from an object of this converter's
type, and sets them into the given ReadWritableInterval.
Parameters: writableInterval - interval to get modified, not null Parameters: object - the object to convert, must not be null Parameters: chrono - the chronology to use, may be null throws: ClassCastException - if the object is invalid |
|
|