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

org.dmg.pmml.HasDiscreteDomain Maven / Gradle / Ivy

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

import java.util.List;

public interface HasDiscreteDomain & HasDiscreteDomain> {

	boolean hasValues();

	List getValues();

	@SuppressWarnings("unchecked")
	default
	E addValues(Value.Property property, Object... values){
		List pmmlValues = getValues();

		for(Object value : values){
			Value pmmlValue = new Value(value)
				.setProperty(property);

			pmmlValues.add(pmmlValue);
		}

		return (E)this;
	}

	E addValues(Value... values);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy