com.jchanghong.core.convert.impl.OptionalConverter Maven / Gradle / Ivy
The newest version!
package com.jchanghong.core.convert.impl;
import com.jchanghong.core.convert.AbstractConverter;
import java.util.Optional;
/**
*
* {@link Optional}对象转换器
*
* @author Looly
* @since 5.0.0
*/
public class OptionalConverter extends AbstractConverter> {
private static final long serialVersionUID = 1L;
@Override
protected Optional> convertInternal(Object value) {
return Optional.ofNullable(value);
}
}