org.dmg.pmml.adapters.IntegerAdapter Maven / Gradle / Ivy
/*
* Copyright (c) 2019 Villu Ruusmann
*/
package org.dmg.pmml.adapters;
import javax.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);
}
}