Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.joda.time.convert
Interface DurationConverter

All Superinterfaces:
  Converter

    public interface DurationConverter

extends Converter

DurationConverter defines how an object is converted to a millisecond duration.

Since:
  1.0
Author:
  Stephen Colebourne, Brian S O'Neill

Method Summary
`long` | `getDurationMillis(java.lang.Object object)` Extracts the millis from an object of this convertor's type.

Methods inherited from interface org.joda.time.convert.Converter
`getSupportedType`

Method Detail

### getDurationMillis

    long getDurationMillis(java.lang.Object object)

  Extracts the millis from an object of this convertor's type.

  Parameters:
    `object` - the object to convert, must not be null
  Returns:
    the millisecond duration
  Throws:
    `java.lang.ClassCastException` - if the object is invalid

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD