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

Method Summary
 long getDurationMillis(Object object)
          Extracts the millis from an object of this converter's type.
 
Methods inherited from interface org.joda.time.convert.Converter
getSupportedType
 

Method Detail

getDurationMillis

long getDurationMillis(Object object)
Extracts the millis from an object of this converter's type.

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


Copyright © 2002–2015 Joda.org. All rights reserved.