org.joda.time.convert
Interface IntervalConverter
- Converter
public interface IntervalConverter
IntervalConverter defines how an object is converted to an interval.
- Brian S O'Neill
- Stephen Colebourne
isReadableInterval
public boolean isReadableInterval(Object object,
Chronology chrono)
Checks if the input is a ReadableInterval.
If it is, then the calling code should cast and copy the fields directly.
object
- the object to convert, must not be nullchrono
- the chronology to use, may be null
- true if the input is a ReadableInterval
setInto
public void setInto(ReadWritableInterval writableInterval,
Object object,
Chronology chrono)
Extracts interval endpoint values from an object of this converter's
type, and sets them into the given ReadWritableInterval.
writableInterval
- interval to get modified, not nullobject
- the object to convert, must not be nullchrono
- the chronology to use, may be null
Copyright (c) 2001-2006 - Joda.org