Version: v0.7.1 - Beta.  We welcome contributors & feedback.

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()
    }
}

See Also