org.onetwo.common.convert.ToShortConvertor Maven / Gradle / Ivy
package org.onetwo.common.convert;
public class ToShortConvertor extends AbstractTypeConvert {
private ToLongConvertor longConvertor;
public ToShortConvertor() {
super((short)0);
this.longConvertor = new ToLongConvertor();
}
@Override
public Short doConvert(Object value, Class> componentType) {
return longConvertor.convert(value, componentType).shortValue();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy