Functions
The following functions are available globally.
-
Static global function for comparing equality between any two objects.
This function will return
true
if:- Both objects are
nil
- The objects both conform to
NSObjectProtocol
and theisEqual()
function returnstrue
. - The left-hand object conforms to
RSDObjectProtocol
and theisEqual()
function returnstrue
.
Declaration
Swift
public func RSDObjectEquality(_ objA: Any?, _ objB: Any?) -> Bool
- Both objects are
-
Static global function for getting the hash value for any object.
- If the object conforms to
NSObjectProtocol
, thenhash
will be returned. - If the object casts to
AnyHashable
, then thehashValue
will be returned. - If the object conforms to
RSDObjectProtocol
, then thehashValue
will be returned.
Declaration
Swift
public func RSDObjectHash(_ obj: Any?) -> Int
- If the object conforms to