com.github.zhangxd1989.basetool.convert.impl.Jdk8DateConverter Maven / Gradle / Ivy
package com.github.zhangxd1989.basetool.convert.impl;
import com.github.zhangxd1989.basetool.convert.AbstractConverter;
import com.github.zhangxd1989.basetool.util.ClassUtil;
import com.github.zhangxd1989.basetool.util.ReflectUtil;
import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/**
* JDK8中新加入的java.time包对象解析转换器
* 通过反射调用“parse方法”,支持的对象包括:
*
*
* java.time.LocalDateTime
* java.time.LocalDate
* java.time.LocalTime
* java.time.ZonedDateTime
* java.time.OffsetDateTime
* java.time.OffsetTime
* java.time.Period
* java.time.Instant
*
*
* @author sheldon
*/
public class Jdk8DateConverter extends AbstractConverter