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 func hash(into hasher: inout Hasher)
  • Represents an undefined data value (distinct from nil). The dataType of an undefined value is DataType.unknown.

    Declaration

    Swift

    public static let undefined: DataValue
  • Default initializer.

    Declaration

    Swift

    override public init()
  • Declaration

    Swift

    open class func cloneMutable(_ value: DataValue?) -> DataValue?

    Parameters

    value

    Value to be cloned.

    Return Value

    A clone of value if it is mutable, or value if it is immutable.

  • Data type of the wrapped value.

    Declaration

    Swift

    open var dataType: DataType { get }
  • 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 { get }