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
.
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
). ThedataType
of an undefined value isDataType.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, orvalue
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 tovalue
. -
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 }