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

org.dmg.pmml.adapters.RealNumberAdapter Maven / Gradle / Ivy

There is a newer version: 1.6.6
Show newest version
/*
 * Copyright (c) 2019 Villu Ruusmann
 */
package org.dmg.pmml.adapters;

import jakarta.xml.bind.annotation.adapters.XmlAdapter;

public class RealNumberAdapter extends XmlAdapter {

	@Override
	public Number unmarshal(String value){
		return NumberUtil.parseNumber(value);
	}

	@Override
	public String marshal(Number value){

		if(value == null){
			return null;
		}

		return NumberUtil.printNumber(value);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy