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

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

There is a newer version: 4.7.2
Show newest version
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