public interface

DurationConverter

implements Converter
org.joda.time.convert.DurationConverter

Class Overview

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

Summary

Public Methods
abstract long getDurationMillis(Object object)
Extracts the millis from an object of this convertor's type.
[Expand]
Inherited Methods
From interface org.joda.time.convert.Converter

Public Methods

public abstract long getDurationMillis (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
ClassCastException if the object is invalid