@available(*, deprecated, renamed: "RealmProperty", message: "RealmOptional<T> has been deprecated, use RealmProperty<T?> instead.")
public final class RealmOptional<Value> : RLMSwiftValueStorage where Value : RealmOptionalType
extension RealmOptional: Equatable where Value: Equatable
extension RealmOptional: Codable where Value: Codable, Value: _RealmSchemaDiscoverable
A RealmOptional
instance represents an optional value for types that can’t be directly declared as @objc
in Swift, such as Int
, Float
, Double
, and Bool
.
To change the underlying value stored by a RealmOptional
instance, mutate the instance’s value
property.
The value the optional represents.
DeclarationSwift
public var value: Value? { get set }
Creates a RealmOptional
instance encapsulating the given default value.
Swift
public init(_ value: Value? = nil)
Parameters value
The value to store in the optional, or nil
if not specified.
Value
: Equatable
Swift
public static func == (lhs: RealmOptional<Value>, rhs: RealmOptional<Value>) -> Bool
Value
: Codable
, Value
: _RealmSchemaDiscoverable
Swift
public convenience init(from decoder: Decoder) throws
Swift
public func encode(to encoder: Encoder) throws
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4