ContentEquatable

public protocol ContentEquatable

Represents a value that can compare whether the content are equal.

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