org.dmg.pmml.adapters.IntegerAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmml-model-gwt Show documentation
Show all versions of pmml-model-gwt Show documentation
JPMML GWT compatible class model
/*
* Copyright (c) 2019 Villu Ruusmann
*/
package org.dmg.pmml.adapters;
import jakarta.xml.bind.annotation.adapters.XmlAdapter;
public class IntegerAdapter extends XmlAdapter {
@Override
public Integer unmarshal(String value){
return NumberUtil.parseInteger(value);
}
@Override
public String marshal(Integer value){
if(value == null){
return null;
}
return NumberUtil.printInteger(value);
}
}