cn.featherfly.conversion.string.format.LocalTimeFormatConvertor Maven / Gradle / Ivy
package cn.featherfly.conversion.string.format;
import java.time.LocalTime;
import java.time.format.DateTimeFormatter;
import cn.featherfly.conversion.string.basic.LocalTimeConvertor;
/**
*
* LocalTime类转换器
*
*
* @author 钟冀
*/
public class LocalTimeFormatConvertor extends AbstractLocalDateTimeFormatConvertor {
/**
*/
public LocalTimeFormatConvertor() {
super(new LocalTimeConvertor());
}
/**
* {@inheritDoc}
*/
@Override
protected LocalTime convert(String value, DateTimeFormatter formatter) {
return LocalTime.parse(value, formatter);
}
}