Package org.eclipse.jgit.treewalk
Class InstantComparator
java.lang.Object
org.eclipse.jgit.treewalk.InstantComparator
- All Implemented Interfaces:
Comparator<Instant>
Specialized comparator for
Instant
s. If either timestamp has a zero
fraction, compares only seconds. If either timestamp has no time fraction
smaller than a millisecond, compares only milliseconds. If either timestamp
has no fraction smaller than a microsecond, compares only microseconds.-
Constructor Summary
Constructors -
Method Summary
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
-
InstantComparator
InstantComparator()
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<Instant>
-
compare
Compares twoInstant
s to the lower resolution of the two instants. SeeInstantComparator
.
-