org.semanticweb.owlapi.model.OWLVisitorExBase Maven / Gradle / Ivy
package org.semanticweb.owlapi.model;
/**
* Base interface for visitors that return a value.
*
* @param
* return value
*/
public interface OWLVisitorExBase {
/**
* Gets the default return value for this visitor. By default, the default
* is {@code null}
*
* @param object
* The object that was visited.
* @param
* type visited
* @return The default return value
*/
@SuppressWarnings("null")
default O doDefault(@SuppressWarnings("unused") T object) {
// no other way to provide a default implementation
return null;
}
}