org.onetwo.common.convert.ToFloatConvertor Maven / Gradle / Ivy
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