org.onetwo.common.convert.ToCharConvertor Maven / Gradle / Ivy
package org.onetwo.common.convert;
public class ToCharConvertor extends AbstractTypeConvert {
private ToLongConvertor longDelegate;
public ToCharConvertor() {
super('\u0000');
this.longDelegate = new ToLongConvertor();
}
@Override
public Character doConvert(Object value, Class> componentType) {
return Character.valueOf((char)longDelegate.convert(value, componentType).shortValue());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy