Java 类org.joda.time.convert.DurationConverter 实例源码

项目:TinyTravelTracker    文件:BaseDuration.java   
/**
 * Creates a duration from the specified object using the
 * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 *
 * @param duration  duration to convert
 * @throws IllegalArgumentException if duration is invalid
 */
protected BaseDuration(Object duration) {
    super();
    DurationConverter converter = ConverterManager.getInstance().getDurationConverter(duration);
    iMillis = converter.getDurationMillis(duration);
}
项目:astor    文件:BaseDuration.java   
/**
 * Creates a duration from the specified object using the
 * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 *
 * @param duration  duration to convert
 * @throws IllegalArgumentException if duration is invalid
 */
protected BaseDuration(Object duration) {
    super();
    DurationConverter converter = ConverterManager.getInstance().getDurationConverter(duration);
    iMillis = converter.getDurationMillis(duration);
}
项目:astor    文件:BaseDuration.java   
/**
 * Creates a duration from the specified object using the
 * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 *
 * @param duration  duration to convert
 * @throws IllegalArgumentException if duration is invalid
 */
protected BaseDuration(Object duration) {
    super();
    DurationConverter converter = ConverterManager.getInstance().getDurationConverter(duration);
    iMillis = converter.getDurationMillis(duration);
}
项目:idylfin    文件:BaseDuration.java   
/**
 * Creates a duration from the specified object using the
 * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 *
 * @param duration  duration to convert
 * @throws IllegalArgumentException if duration is invalid
 */
protected BaseDuration(Object duration) {
    super();
    DurationConverter converter = ConverterManager.getInstance().getDurationConverter(duration);
    iMillis = converter.getDurationMillis(duration);
}
项目:versemem-android    文件:BaseDuration.java   
/**
 * Creates a duration from the specified object using the
 * {@link org.joda.time.convert.ConverterManager ConverterManager}.
 *
 * @param duration  duration to convert
 * @throws IllegalArgumentException if duration is invalid
 */
protected BaseDuration(Object duration) {
    super();
    DurationConverter converter = ConverterManager.getInstance().getDurationConverter(duration);
    iMillis = converter.getDurationMillis(duration);
}