Package hudson.plugins.git.util
Class CommitTimeComparator
java.lang.Object
hudson.plugins.git.util.CommitTimeComparator
- All Implemented Interfaces:
Comparator<hudson.plugins.git.Revision>
Compares
Revision
by their timestamps.- Author:
- Kohsuke Kawaguchi
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(hudson.plugins.git.Revision lhs, hudson.plugins.git.Revision rhs) 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 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 interfaceComparator<hudson.plugins.git.Revision>
-