io.craftsman.creator.LocalTimeCreator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dozer-jdk8-support Show documentation
Show all versions of dozer-jdk8-support Show documentation
A library that provides the missing Java 8 type mappers for the Dozer Java Bean Mapper.
package io.craftsman.creator;
import java.time.LocalTime;
public class LocalTimeCreator implements Creator {
@Override
public LocalTime create(Object source) {
LocalTime srcObject = (LocalTime) source;
return LocalTime.of(srcObject.getHour(), srcObject.getMinute(), srcObject.getSecond(), srcObject.getNano());
}
}