Class VersionLabelComparator

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

    public class VersionLabelComparator
    extends java.lang.Object
    implements java.util.Comparator<Version>
    Deprecated.
    A comparator to sort a version list according to their version labels in descending order (eg. 2.1, 2.0, 1.1, 1.0)
    Author:
    Yanick Pignot
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      int compare​(Version version1, Version version2)
      Deprecated.
       
      • 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

      • VersionLabelComparator

        public VersionLabelComparator()
        Deprecated.
    • Method Detail

      • compare

        public int compare​(Version version1,
                           Version version2)
        Deprecated.
        Specified by:
        compare in interface java.util.Comparator<Version>