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 Identifier : Hashable
  • identifier Default implementation

    An identifier value for difference calculation.

    Default Implementation

    The self value as an identifier for difference calculation.

    Declaration

    Swift

    var identifier: Identifier { get }
  • isContentEqual(to:) Default implementation

    Indicate 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.