DataValue

open class DataValue: ObjectBase, Comparable, Hashable

Abstract base class for wrapper classes that wrap basic data values as objects, as well as calendar values, geography values, geometry values, ComplexValue, EntityValue and ListBase.

  • Implementation of Swift Comparable protocol.

    Declaration

    Swift

    public static func < (lhs: DataValue, rhs: DataValue) -> Bool
  • Implementation of Swift Equatable protocol.

    Declaration

    Swift

    public static func == (lhs: DataValue, rhs: DataValue) -> Bool
  • Implementation of Swift Hashable protocol.

    Declaration

    Swift

    public var hashValue: Int
  • Represents an undefined data value (distinct from nil). The dataType of an undefined value is DataType.unknown.

    Declaration

    Swift

    public static let undefined: DataValue = UndefinedValue()
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Data type of the wrapped value.

    Declaration

    Swift

    open var dataType: DataType
  • Declaration

    Swift

    open func equals(_ value: AnyObject?) -> Bool

    Parameters

    value

    The value to compare with.

    Return Value

    true if this object is equal to value.

  • Hash this data value to a number.

    Declaration

    Swift

    open func hashCode() -> Int

    Return Value

    Any value in the range of type int.

  • Data type code of the wrapped value, equivalent to dataType.code.

    Declaration

    Swift

    open var typeCode: Int