Differentiable
public protocol Differentiable
Represents the value that identified and can be compared to whether has updated.
-
A type representing the identifier.
Declaration
Swift
associatedtype DifferenceIdentifier : Hashable
-
differenceIdentifier
Default implementationAn identifier value for difference calculation.
Default Implementation
The
self
value as an identifier for difference calculation.Declaration
Swift
var differenceIdentifier: DifferenceIdentifier { get }
-
isContentEqual(to:)
Default implementationIndicate whether the content of
self
is equals to the content of the given source value.Default Implementation
Indicate whether the content of
self
is equals to the content of the given source value. Updates are compared using==
operator of `Equatable’.Declaration
Swift
func isContentEqual(to source: Self) -> Bool
Parameters
source
A source value to be compared.
Return Value
A Boolean value indicating whether the content of
self
is equals to the content of the given source value.