Class SegmentStatesDataBean.StateQuickSortCompare

  • java.lang.Object
  • All Implemented Interfaces:
    Enclosing class:

    public static final class SegmentStatesDataBean.StateQuickSortCompare
    extends java.lang.Object
    implements QuickSortCompare
    This class will compare State objects during a quick sort.
    • Constructor Summary

      Constructor and Description
      StateQuickSortCompare(java.text.Collator localeCollator)
      This constructor takes a Collater object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      int compare(java.lang.Object obj1, java.lang.Object obj2)
      Compares two State objects.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StateQuickSortCompare

        public StateQuickSortCompare(java.text.Collator localeCollator)
        This constructor takes a Collater object.
        localeCollator - the locale collator used in the sorting
    • Method Detail

      • compare

        public int compare(java.lang.Object obj1,
                           java.lang.Object obj2)
        Compares two State objects.
        Specified by:
        compare in interface QuickSortCompare
        obj1 - the first Object
        obj2 - the second Object
        0 if the objects are equal. A value greater than 1 if obj1 is greater than obj2. A value less than 1 if ojb1 is less than obj2.