TypedID
public struct TypedID: Equatable
Represents entity type and its ID.
-
Undocumented
See moreDeclaration
Swift
public struct TypedID: Equatable
-
Type of the ID
Declaration
Swift
public let type: Types
-
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
andb
,a == b
implies thata != b
isfalse
.Declaration
Swift
public static func ==(left: TypedID, right: TypedID) -> Bool
Return Value
True if left and right is same, otherwise false.