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

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

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

public class ToFloatConvertor extends AbstractTypeConvert {

	private ToDoubleConvertor doubleDelegate;

	public ToFloatConvertor() {
		super(0.0f);
		doubleDelegate = new ToDoubleConvertor();
	}
	
	@Override
	public Float doConvert(Object value, Class componentType) {
		return doubleDelegate.convert(value, componentType).floatValue();

	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy