OrangeChatKey

public struct OrangeChatKey : Hashable
extension OrangeChatKey: Comparable
extension OrangeChatKey: Codable

A value representing the key of a database node.

The order of the keys is defined as follows:

  • Keys that are parsable as integers are ordered before all other keys.
  • Integer keys (with no leading 0) are ordered following the natural order on integers.
  • Integer keys representing the same number are ordered from the one with the least leading 0 to the one with the most leading 0.
  • All other keys are ordered in lexicographic order.

Example:

0 < 1 < 01 < 001 < 7 < 09 < 72 < 521 < 1000 < aa < b < bb
  • The string value representing this instance.

    Declaration

    Swift

    public var value: String { get }

Comparable

  • Declaration

    Swift

    public static func < (lhs: OrangeChatKey, rhs: OrangeChatKey) -> Bool

Codable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws