Class ConfigurationComparator

    • Constructor Detail

      • ConfigurationComparator

        public ConfigurationComparator()
    • Method Detail

      • compare

        public int compare​(Configuration<?> first,
                           Configuration<?> second)
        Compares two Configuration objects for precedence. Returns a negative integer, zero, or a positive integer as the first Configuration has higher, equal, or lower precedence than the second.
        Specified by:
        compare in interface Comparator<Configuration<?>>
        Parameters:
        first - the first Configuration to be compared
        second - the second Configuration to be compared
        Returns:
        a negative integer if the first Configuration has higher precedence; zero if both objects have the same precedence; or a positive integer as the first object has lower precedence than, equal to, or greater than the second.