# FileNameComparator

public class FileNameComparator implements Comparator<T>

根据文件名进行比较排序

## Constructors

FileTypeUtils.FileNameComparator
Link copied to clipboard
public void FileTypeUtils.FileNameComparator()

## Functions

compare
Link copied to clipboard
public int compare(FileInfo lhs, FileInfo rhs)

## Inherited functions

comparing
Link copied to clipboard
public static Comparator<T> comparing<T, U>(Function<? super T, ? extends U> keyExtractor, Comparator<? super U> keyComparator)
comparingDouble
Link copied to clipboard
public static Comparator<T> comparingDouble<T>(ToDoubleFunction<? super T> keyExtractor)
comparingInt
Link copied to clipboard
public static Comparator<T> comparingInt<T>(ToIntFunction<? super T> keyExtractor)
comparingLong
Link copied to clipboard
public static Comparator<T> comparingLong<T>(ToLongFunction<? super T> keyExtractor)
naturalOrder
Link copied to clipboard
public static Comparator<T> naturalOrder<T extends Comparable<? super T>>()
nullsFirst
Link copied to clipboard
public static Comparator<T> nullsFirst<T>(Comparator<? super T> comparator)
nullsLast
Link copied to clipboard
public static Comparator<T> nullsLast<T>(Comparator<? super T> comparator)
reversed
Link copied to clipboard
public Comparator<T> reversed()
reverseOrder
Link copied to clipboard
public static Comparator<T> reverseOrder<T extends Comparable<? super T>>()
thenComparing
Link copied to clipboard
public Comparator<T> thenComparing(Comparator<? super T> other)
thenComparingDouble
Link copied to clipboard
public Comparator<T> thenComparingDouble(ToDoubleFunction<? super T> keyExtractor)
thenComparingInt
Link copied to clipboard
public Comparator<T> thenComparingInt(ToIntFunction<? super T> keyExtractor)
thenComparingLong
Link copied to clipboard
public Comparator<T> thenComparingLong(ToLongFunction<? super T> keyExtractor)