io.craftsman.creator.DurationCreator Maven / Gradle / Ivy
package io.craftsman.creator;
import java.time.Duration;
public class DurationCreator implements Creator {
@Override
public Duration create(Object source) {
return Duration.parse(source.toString());
}
}