Class CommitTimeComparator

java.lang.Object
hudson.plugins.git.util.CommitTimeComparator
All Implemented Interfaces:
Comparator<hudson.plugins.git.Revision>

public class CommitTimeComparator extends Object implements Comparator<hudson.plugins.git.Revision>
Compares Revision by their timestamps.
Author:
Kohsuke Kawaguchi
  • Constructor Details

    • CommitTimeComparator

      public CommitTimeComparator(org.eclipse.jgit.lib.Repository r)
  • Method Details

    • compare

      public int compare(hudson.plugins.git.Revision lhs, hudson.plugins.git.Revision rhs)
      Specified by:
      compare in interface Comparator<hudson.plugins.git.Revision>