Package org.eclipse.jgit.treewalk
Class InstantComparator
java.lang.Object
org.eclipse.jgit.treewalk.InstantComparator
- All Implemented Interfaces:
Comparator<Instant>
Specialized comparator for
Instants. 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, waitMethods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
InstantComparator
InstantComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<Instant>
-
compare
Compares twoInstants to the lower resolution of the two instants. SeeInstantComparator.
-