ObjectHooks.onEquals
onEquals($otherObject) -> boolean
Description
Override the result of calls to equals()
.
Should return true
or false
.
class MyObject { public fn onEquals($otherObject) { return @.getId() == $otherObject.getId() } }
Override the result of calls to equals()
.
Should return true
or false
.
class MyObject { public fn onEquals($otherObject) { return @.getId() == $otherObject.getId() } }