RSDObjectProtocol
public protocol RSDObjectProtocol
Light-weight protocol for handling generic equality without requiring a class or
struct to implement all of the NSObjectProtocol
.
-
Equality test that does not require knowing the cast of the object being tested.
Declaration
Swift
func isEqual(_ object: Any?) -> Bool
Parameters
object
The object against which to test equality.
Return Value
true
if the objects are equal. -
The hash value.
Hash values are not guaranteed to be equal across different executions of your program. Do not save hash values to use during a future execution.
Declaration
Swift
var hashValue: Int { get }