typed arrays

This commit is contained in:
John Estropia
2016-03-28 19:41:11 +09:00
parent e9ac8629a1
commit 9d7960e674
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ public struct Where: FetchClause, QueryClause, DeleteClause, Hashable {
- parameter keyPath: the keyPath to compare with
- parameter list: the array to check membership of
*/
public init(_ keyPath: KeyPath, isMemberOf list: NSArray) {
public init(_ keyPath: KeyPath, isMemberOf list: [NSObject]) {
self.init(NSPredicate(format: "\(keyPath) IN %@", list))
}

View File

@@ -93,7 +93,7 @@ public final class CSWhere: NSObject, CSFetchClause, CSQueryClause, CSDeleteClau
- returns: a `CSWhere` clause that compares membership
*/
@objc
public static func keyPath(keyPath: KeyPath, isMemberOf list: NSArray) -> CSWhere {
public static func keyPath(keyPath: KeyPath, isMemberOf list: [NSObject]) -> CSWhere {
return self.init(Where(keyPath, isMemberOf: list))
}