DataValue
open class DataValue : ObjectBase, Comparable, Hashable, @unchecked Sendable
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.
See also
StringValue, BinaryValue, BooleanValue, CharValue, ByteValue, ShortValue, IntValue, LongValue, IntegerValue, DecimalValue, FloatValue, DoubleValue, UnsignedByte, UnsignedShort, EnumValue, GuidValue, LocalDate, LocalTime, LocalDateTime, GlobalDateTime, DayTimeDuration, YearMonthDuration, GeographyValue, GeometryValue.
-
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). ThedataTypeof an undefined value isDataType.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
valueValue to be cloned.
Return Value
A clone of
valueif it is possibly mutable, orvalueif it is definitely immutable. -
Declaration
Swift
open func copyMutable() -> DataValueReturn Value
A clone of this value if it (together with all value subcomponents) is possibly mutable, or return
selfvalue 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?) -> BoolParameters
otherThe value to compare with.
Return Value
trueif this object is equal tovalue. -
Hash this data value to a number.
Declaration
Swift
open func hashCode() -> IntReturn 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 }