All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.featherfly.conversion.string.basic.GenericClassArrayConvertor Maven / Gradle / Ivy

package cn.featherfly.conversion.string.basic;

import cn.featherfly.common.lang.GenericType;
import cn.featherfly.common.lang.reflect.GenericClass;
import cn.featherfly.conversion.string.ToStringConvertor;


/**
 * 

* 数组转换器 *

* @param 数组自身类型 * @param 数组项类型 * @author 钟冀 */ public class GenericClassArrayConvertor extends ArrayConvertor, E, GenericClass>{ /** * @param convertor conversion */ public GenericClassArrayConvertor(ToStringConvertor convertor) { super(convertor); } /** * {@inheritDoc} */ @Override protected boolean supportFor(GenericType generecType) { if (generecType == null) { return false; } return GenericClass.class == generecType.getClass(); } /** * {@inheritDoc} */ @Override protected GenericClass getArrayItemGenericType(GenericClass genericType) { return new GenericClass(getConvertor().getSourceType()); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy