-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
Copy pathNSCompoundPredicate.swift
32 lines (24 loc) · 1.3 KB
/
NSCompoundPredicate.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
// Compound predicates are predicates which act on the results of evaluating other operators. We provide the basic boolean operators: AND, OR, and NOT.
public enum NSCompoundPredicateType : UInt {
case NotPredicateType
case AndPredicateType
case OrPredicateType
}
public class NSCompoundPredicate : NSPredicate {
public init(type: NSCompoundPredicateType, subpredicates: [NSPredicate]) { NSUnimplemented() }
public required init?(coder: NSCoder) { NSUnimplemented() }
public var compoundPredicateType: NSCompoundPredicateType { NSUnimplemented() }
public var subpredicates: [AnyObject] { NSUnimplemented() }
/*** Convenience Methods ***/
public init(andPredicateWithSubpredicates subpredicates: [NSPredicate]) { NSUnimplemented() }
public init(orPredicateWithSubpredicates subpredicates: [NSPredicate]) { NSUnimplemented() }
public init(notPredicateWithSubpredicate predicate: NSPredicate) { NSUnimplemented() }
}