Measure
public class Measure : Item
A measure consists of a definition, symbol, unit and value (int, float, string, bool, or datetime).
-
The definition of an Item.
Declaration
Swift
@objc dynamic var definition: String?
-
A symbol, for instance to represent a Unit or Measure.
Declaration
Swift
@objc dynamic var symbol: String?
-
An integer value.
Declaration
Swift
let intValue: RealmOptional<Int>
-
A floating point value.
Declaration
Swift
let floatValue: RealmOptional<Double>
-
A string value.
Declaration
Swift
@objc dynamic var stringValue: String?
-
A datetime value.
Declaration
Swift
@objc dynamic var datetimeValue: Date?
-
A boolean value.
Declaration
Swift
@objc dynamic var boolValue: Bool
-
A unit, typically from International System of Units (SI).
Declaration
Swift
var unit: Unit? { get }
-
Undocumented
Declaration
Swift
public required convenience init(from decoder: Decoder) throws