mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 00:17:11 -07:00
hashCode() for FileDependencies.
This commit is contained in:
parent
e3eff30fa6
commit
ee88bac39f
1 changed files with 13 additions and 0 deletions
|
@ -74,4 +74,17 @@ open public class FileDependency(open val fileName: String) : IClasspathDependen
|
|||
override fun compareTo(other: FileDependency) = fileName.compareTo(other.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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue