Class SMSubConfigComparator

  • All Implemented Interfaces:
    Comparator

    public class SMSubConfigComparator
    extends Object
    implements Comparator
    Sub Configuration Display Object Comparator.
    • Constructor Detail

      • SMSubConfigComparator

        public SMSubConfigComparator​(Collator collator)
        Creates an instance of SMSubConfigComparator.
        Parameters:
        collator - for locale base sorting
    • Method Detail

      • compare

        public int compare​(Object o1,
                           Object o2)
        Compares two SMSubConfig object. Ordered by its type and then name.
        Specified by:
        compare in interface Comparator
        Returns:
        0 if their types and names are the same. -1 if o1's type is lexicographically less than o2's type. compares their name if their type is the same. 1 if o2's type is lexicographically less than o2's type. compares their name if their type is the same.