Class NSSet<_ObjectType>

    • Constructor Detail

      • NSSet

        protected NSSet​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSSet<?> alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • set

        public static <_ObjectType> NSSet<?> set()
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • setWithArray

        public static <_ObjectType> NSSet<?> setWithArray​(NSArray<_ObjectType> array)
      • setWithObject

        public static <_ObjectType> NSSet<?> setWithObject​(_ObjectType object)
      • setWithObjects

        public static <_ObjectType> NSSet<?> setWithObjects​(_ObjectType firstObj,
                                                            java.lang.Object... varargs)
      • setWithObjectsCount

        public static <_ObjectType> NSSet<?> setWithObjectsCount​(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                                 long cnt)
      • setWithSet

        public static <_ObjectType> NSSet<?> setWithSet​(NSSet<_ObjectType> set)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static <_ObjectType> boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • addObserverForKeyPathOptionsContext

        public void addObserverForKeyPathOptionsContext​(NSObject observer,
                                                        java.lang.String keyPath,
                                                        long options,
                                                        org.moe.natj.general.ptr.VoidPtr context)
        NSSets are not observable, so these methods raise exceptions when invoked on NSSets. Instead of observing a set, observe the unordered to-many relationship for which the set is the collection of related objects.
        Overrides:
        addObserverForKeyPathOptionsContext in class NSObject
      • containsObject

        public boolean containsObject​(_ObjectType anObject)
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • count

        public long count()
      • countByEnumeratingWithStateObjectsCount

        public long countByEnumeratingWithStateObjectsCount​(org.moe.natj.general.ptr.VoidPtr state,
                                                            org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
                                                            long len)
        Specified by:
        countByEnumeratingWithStateObjectsCount in interface NSFastEnumeration
      • descriptionWithLocale

        public java.lang.String descriptionWithLocale​(java.lang.Object locale)
      • filteredSetUsingPredicate

        public NSSet<_ObjectType> filteredSetUsingPredicate​(NSPredicate predicate)
        evaluate a predicate against a set of objects and return a filtered set
      • initWithObjects

        public NSSet<?> initWithObjects​(_ObjectType firstObj,
                                        java.lang.Object... varargs)
      • initWithObjectsCount

        public NSSet<?> initWithObjectsCount​(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                             long cnt)
      • makeObjectsPerformSelector

        public void makeObjectsPerformSelector​(org.moe.natj.objc.SEL aSelector)
      • makeObjectsPerformSelectorWithObject

        public void makeObjectsPerformSelectorWithObject​(org.moe.natj.objc.SEL aSelector,
                                                         java.lang.Object argument)
      • mutableCopyWithZone

        public java.lang.Object mutableCopyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • removeObserverForKeyPathContext

        public void removeObserverForKeyPathContext​(NSObject observer,
                                                    java.lang.String keyPath,
                                                    org.moe.natj.general.ptr.VoidPtr context)
        Overrides:
        removeObserverForKeyPathContext in class NSObject
      • setValueForKey

        public void setValueForKey​(java.lang.Object value,
                                   java.lang.String key)
        Invoke -setValue:forKey: on each of the receiver's members.
        Overrides:
        setValueForKey in class NSObject
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • valueForKey

        public java.lang.Object valueForKey​(java.lang.String key)
        Return a set containing the results of invoking -valueForKey: on each of the receiver's members. The returned set might not have the same number of members as the receiver. The returned set will not contain any elements corresponding to instances of -valueForKey: returning nil (in contrast with -[NSArray(NSKeyValueCoding) valueForKey:], which may put NSNulls in the arrays it returns).
        Overrides:
        valueForKey in class NSObject