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

liquibase.servicelocator.PrioritizedService Maven / Gradle / Ivy

There is a newer version: 3.6.2.5.inovus
Show newest version
package liquibase.servicelocator;

import java.util.Comparator;

public interface PrioritizedService {
    Comparator COMPARATOR = new Comparator() {
        @Override
        public int compare(PrioritizedService o1, PrioritizedService o2) {
            return (o1.getPriority() < o2.getPriority()) ? 1 : ((o1.getPriority() == o2.getPriority()) ? 0 : -1);
        }
    };

    int PRIORITY_DEFAULT = 1;
    int PRIORITY_DATABASE = 5;

    int getPriority();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy