Class CollectionUtil.ReverseComparator<T>

  • All Implemented Interfaces:
    java.util.Comparator<T>
    Enclosing class:
    CollectionUtil

    private static class CollectionUtil.ReverseComparator<T>
    extends java.lang.Object
    implements java.util.Comparator<T>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Comparator<T> comparator  
    • Constructor Summary

      Constructors 
      Constructor Description
      ReverseComparator​(java.util.Comparator<T> pComparator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T pLeft, T pRight)  
      • 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

      • comparator

        private final java.util.Comparator<T> comparator
    • Constructor Detail

      • ReverseComparator

        public ReverseComparator​(java.util.Comparator<T> pComparator)
    • Method Detail

      • compare

        public int compare​(T pLeft,
                           T pRight)
        Specified by:
        compare in interface java.util.Comparator<T>