fi.evolver.ai.vaadin.component.ComponentSource Maven / Gradle / Ivy
package fi.evolver.ai.vaadin.component;
import com.vaadin.flow.component.Component;
public interface ComponentSource extends Comparable> {
public Component getComponent();
public default int getOrder() {
return 1;
}
@Override
public default int compareTo(ComponentSource other) {
return getOrder() - other.getOrder();
}
}