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

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

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

import org.jpmml.model.UnsupportedElementException;

public interface HasPredicate> {

	/**
	 * @throws UnsupportedElementException If the {@link Predicate} child element is not assignment-compatible with the assumed type.
	 */
	default
	

P requirePredicate(Class clazz){ Predicate predicate = requirePredicate(); if(!clazz.isInstance(predicate)){ throw new UnsupportedElementException(predicate); } return clazz.cast(predicate); } Predicate requirePredicate(); Predicate getPredicate(); E setPredicate(Predicate predicate); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy