Class SpecificComparator

    • Constructor Detail

      • SpecificComparator

        public SpecificComparator()
    • Method Detail

      • compare

        public int compare​(String spec1,
                           String spec2)
        returns the difference of spec1 - spec2
        Specified by:
        compare in interface Comparator<String>
        Parameters:
        spec1 - a String object.
        spec2 - a String object.
        Returns:
        -1 for spec1 < spec2, 0 for spec1 == spec2, 1 for spec1 > spec2