Class MultiComparator

  • All Implemented Interfaces:

    public class MultiComparator
    extends java.lang.Object
    implements java.util.Comparator
    This class is comparator which combines an array of comparator.
    $Revision: 17861 $
    Olivier Dedieu
    • Field Summary

      Modifier and Type Field Description
      protected java.util.Comparator[] array  
      static java.lang.String REVISION  
    • Constructor Summary

      Constructor Description
      MultiComparator​(java.util.Comparator[] array)  
      MultiComparator​(java.util.Comparator cmp1, java.util.Comparator cmp2)  
      MultiComparator​(java.util.Comparator cmp1, java.util.Comparator cmp2, java.util.Comparator cmp3)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.Object o1, java.lang.Object o2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Field Detail

      • array

        protected java.util.Comparator[] array
    • Constructor Detail

      • MultiComparator

        public MultiComparator​(java.util.Comparator[] array)
      • MultiComparator

        public MultiComparator​(java.util.Comparator cmp1,
                               java.util.Comparator cmp2)
      • MultiComparator

        public MultiComparator​(java.util.Comparator cmp1,
                               java.util.Comparator cmp2,
                               java.util.Comparator cmp3)
    • Method Detail

      • compare

        public int compare​(java.lang.Object o1,
                           java.lang.Object o2)
        Specified by:
        compare in interface java.util.Comparator