cn.featherfly.conversion.string.format.FormatArrayConvertor Maven / Gradle / Ivy
package cn.featherfly.conversion.string.format;
import cn.featherfly.conversion.string.basic.ArrayConvertor;
/**
*
* 数组转换器
*
* @param 数组自身类型
* @param 数组项类型
* @author 钟冀
*/
public abstract class FormatArrayConvertor extends ArrayConvertor, E, FormatType>{
/**
* @param convertor conversion
*/
public FormatArrayConvertor(FormatConvertor convertor) {
super(convertor);
}
/**
* {@inheritDoc}
*/
@Override
protected FormatType getArrayItemGenericType(FormatType formatType) {
FormatType ft = new FormatType<>(getConvertor().getSourceType());
ft.setFormat(formatType.getFormat());
ft.setFormats(formatType.getFormats());
return ft;
}
}