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

org.onetwo.common.convert.ToStringConvertor Maven / Gradle / Ivy

There is a newer version: 4.7.2
Show newest version
package org.onetwo.common.convert;

import org.onetwo.common.utils.LangUtils;


public class ToStringConvertor extends AbstractTypeConvert{

	public ToStringConvertor() {
		super(LangUtils.EMPTY_STRING);
	}
	
	@Override
	public String doConvert(Object value, Class componentType) {
//		if (value == null)
//			return defValue;
//            return LangUtils.EMPTY_STRING;
        return value.toString();

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy