Package ca.corbett.extras.io
Class FileNameComparator
java.lang.Object
ca.corbett.extras.io.FileNameComparator
- All Implemented Interfaces:
Comparator<File>
A simple Comparator implementation that compares File objects by comparing their
absolute paths.
- Since:
- 2022-05-10
- Author:
- scorbo2
-
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
-
FileNameComparator
public FileNameComparator()
-
-
Method Details
-
compare
- Specified by:
comparein interfaceComparator<File>
-