implementations for desctiption and debugDescription complete for all CoreStore types

This commit is contained in:
John Rommel Estropia
2016-05-08 20:30:28 +09:00
parent 9dae291f62
commit 57b66cff34
25 changed files with 373 additions and 35 deletions

View File

@@ -56,7 +56,7 @@ public final class CSSetupResult: NSObject {
}
/**
A `CSStorageInterface` instance if the `commit` operation for the transaction succeeded. Returns `NO` otherwise.
A `CSStorageInterface` instance if the `commit` operation for the transaction succeeded. Returns `nil` otherwise.
*/
@objc
public let storage: CSStorageInterface?
@@ -143,6 +143,11 @@ public final class CSSetupResult: NSObject {
return self.storage === object.storage
&& self.error == object.error
}
public override var description: String {
return "(\(String(reflecting: self.dynamicType))) \(self.bridgeToSwift.coreStoreDumpString)"
}
// MARK: CoreStoreObjectiveCType
@@ -159,8 +164,14 @@ public final class CSSetupResult: NSObject {
self.storage = nil
self.error = error.bridgeToObjectiveC
}
self.bridgeToSwift = swiftValue
super.init()
}
// MARK: Private
private let bridgeToSwift: CoreStoreDebugStringConvertible
}