30 lines
858 B
Java
30 lines
858 B
Java
|
package c.b.a.d;
|
||
|
|
||
|
import com.lytefast.flexinput.adapters.FileListAdapter;
|
||
|
import d0.u.a;
|
||
|
import java.io.File;
|
||
|
import java.util.Comparator;
|
||
|
import java.util.Objects;
|
||
|
/* compiled from: Comparisons.kt */
|
||
|
public final class g<T> implements Comparator<T> {
|
||
|
public final /* synthetic */ FileListAdapter.a i;
|
||
|
|
||
|
public g(FileListAdapter.a aVar) {
|
||
|
this.i = aVar;
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Comparator
|
||
|
public final int compare(T t, T t2) {
|
||
|
Objects.requireNonNull(this.i);
|
||
|
File file = (File) t2.getData();
|
||
|
long j = 0;
|
||
|
Long valueOf = Long.valueOf(file != null ? file.lastModified() : 0);
|
||
|
Objects.requireNonNull(this.i);
|
||
|
File file2 = (File) t.getData();
|
||
|
if (file2 != null) {
|
||
|
j = file2.lastModified();
|
||
|
}
|
||
|
return a.compareValues(valueOf, Long.valueOf(j));
|
||
|
}
|
||
|
}
|