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 }
-
isUpdated(from:)
Default implementationIndicate whether
self
has updated from given source value.Default Implementation
Indicate whether
self
has updated from given source value. Updates are compared using!=
operator of `Equatable’.Declaration
Swift
func isUpdated(from source: Self) -> Bool
Parameters
source
A source value to be compared.
Return Value
A Boolean value indicating whether
self
has updated from given source value.