Class SVcsRootComparator

  • All Implemented Interfaces:
    java.util.Comparator<SVcsRoot>

    public class SVcsRootComparator
    extends java.lang.Object
    implements java.util.Comparator<SVcsRoot>
    This comparator compares VCS roots by taking projects hierarchy into account.
    Since:
    2018.1.3
    • Constructor Summary

      Constructors 
      Constructor Description
      SVcsRootComparator​(java.util.Comparator<SProject> projectComparator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(SVcsRoot o1, SVcsRoot 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
    • Constructor Detail

      • SVcsRootComparator

        public SVcsRootComparator​(@NotNull
                                  java.util.Comparator<SProject> projectComparator)
    • Method Detail

      • compare

        public int compare​(SVcsRoot o1,
                           SVcsRoot o2)
        Specified by:
        compare in interface java.util.Comparator<SVcsRoot>