1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 08:27:12 -07:00

hashCode() for FileDependencies.

This commit is contained in:
Cedric Beust 2015-11-10 14:34:50 -08:00
parent e3eff30fa6
commit ee88bac39f

View file

@ -74,4 +74,17 @@ open public class FileDependency(open val fileName: String) : IClasspathDependen
override fun compareTo(other: FileDependency) = fileName.compareTo(other.fileName) override fun compareTo(other: FileDependency) = fileName.compareTo(other.fileName)
override fun toString() = fileName override fun toString() = fileName
override fun equals(other: Any?): Boolean{
if (this === other) return true
if (other?.javaClass != javaClass) return false
other as FileDependency
if (id != other.id) return false
return true
}
override fun hashCode() = id.hashCode()
} }