org.dmg.pmml.HasDiscreteDomain Maven / Gradle / Ivy
/*
* Copyright (c) 2018 Villu Ruusmann
*/
package org.dmg.pmml;
import java.util.List;
public interface HasDiscreteDomain & HasDiscreteDomain> {
boolean hasValues();
List getValues();
@SuppressWarnings (
value = {"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);
}