Class NSPredicate

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
NSComparisonPredicate, NSCompoundPredicate

public class NSPredicate
extends NSObject
implements NSSecureCoding
  • Constructor Details

    • NSPredicate

      public NSPredicate()
    • NSPredicate

      protected NSPredicate​(NSObject.Handle h, long handle)
    • NSPredicate

      protected NSPredicate​(NSObject.SkipInit skipInit)
    • NSPredicate

      public NSPredicate​(String predicateFormat, NSArray<?> arguments)
    • NSPredicate

      public NSPredicate​(boolean value)
    • NSPredicate

      public NSPredicate​(Block2<NSObject,​NSDictionary<NSString,​?>,​Boolean> block)
    • NSPredicate

      public NSPredicate​(NSCoder coder)
    • NSPredicate

      public NSPredicate​(String predicateFormat, Object... arguments)
    • NSPredicate

      public NSPredicate​(String predicateFormat, NSObject... arguments)
  • Method Details

    • getPredicateFormat

      public String getPredicateFormat()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • newPredicate

      public NSPredicate newPredicate​(NSDictionary<NSString,​?> variables)
    • evaluate

      public boolean evaluate​(NSObject object)
    • evaluate

      public boolean evaluate​(NSObject object, NSDictionary<NSString,​?> variables)
    • allowEvaluation

      public void allowEvaluation()
    • create

      protected static long create​(String predicateFormat, NSArray<?> arguments)
    • create

      protected static long create​(boolean value)
    • create

      protected static long create​(Block2<NSObject,​NSDictionary<NSString,​?>,​Boolean> block)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)