TypedID

public struct TypedID: Equatable

Represents entity type and its ID.

  • Undocumented

    See more

    Declaration

    Swift

    public struct TypedID: Equatable
  • Type of the ID

    Declaration

    Swift

    public let type: Types
  • id

    ID of the entity.

    Declaration

    Swift

    public let id: String
  • Hash value for TypedID instance.

    Declaration

    Swift

    public var hashValue: Int
  • Ininitialize TypedID with type and id.

    Declaration

    Swift

    public init(_ type:Types, id:String)

    Parameters

    type

    Type of the entity.

    id

    ID of the entity.

  • Returns a Boolean value indicating whether two values are equal.

    Equality is the inverse of inequality. For any values a and b, a == b implies that a != b is false.

    Declaration

    Swift

    public static func ==(left: TypedID, right: TypedID) -> Bool

    Return Value

    True if left and right is same, otherwise false.