Class LatestRevisionStrategy.ArtifactInfoComparator

  • All Implemented Interfaces:
    java.util.Comparator<ArtifactInfo>
    Enclosing class:
    LatestRevisionStrategy

    final class LatestRevisionStrategy.ArtifactInfoComparator
    extends java.lang.Object
    implements java.util.Comparator<ArtifactInfo>
    Compares two ArtifactInfo by their revision. Revisions are compared using an algorithm inspired by PHP version_compare one, unless a dynamic revision is given, in which case the version matcher is used to perform the comparison.
    • Method Summary

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

      • ArtifactInfoComparator

        ArtifactInfoComparator()