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()
  • See also

    copyMutable.

    Declaration

    Swift

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

    Parameters

    value

    Value to be cloned.

    Return Value

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

  • Declaration

    Swift

    open func copyMutable() -> DataValue

    Return Value

    A clone of this value if it (together with all value subcomponents) is possibly mutable, or return self value if it (together with all value subcomponents) is definitely immutable. The resulting value might share mutable metadata with this query.

  • Data type of the wrapped value.

    Declaration

    Swift

    open var dataType: DataType { get }
  • Declaration

    Swift

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

    Parameters

    other

    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 }