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