[android-components](../../../index.md) / [org.mozilla.telemetry.util](../../index.md) / [FileUtils](../index.md) / [FileLastModifiedComparator](index.md) / [compare](./compare.md)

# compare

`open fun compare(lhs: `[`File`](http://docs.oracle.com/javase/7/docs/api/java/io/File.html)`, rhs: `[`File`](http://docs.oracle.com/javase/7/docs/api/java/io/File.html)`): `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/service/telemetry/src/main/java/org/mozilla/telemetry/util/FileUtils.java#L54)