Class SiteComparator

  • All Implemented Interfaces:
    Comparator

    public class SiteComparator
    extends Object
    implements Comparator
    The comparator to be used in Worksite Setup/Site Info tool
    • Constructor Detail

      • SiteComparator

        public SiteComparator​(String criterion,
                              String asc)
        constructor
        Parameters:
        criteria - The sort criteria string
        asc - The sort order string. TRUE_STRING if ascending; "false" otherwise.
      • SiteComparator

        public SiteComparator​(String criterion,
                              String asc,
                              Locale locale)
    • Method Detail

      • compare

        public int compare​(Object o1,
                           Object o2)
        implementing the Comparator compare function
        Specified by:
        compare in interface Comparator
        Parameters:
        o1 - The first object
        o2 - The second object
        Returns:
        The compare result. 1 is o1 < o2; -1 otherwise