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 NSSet<?> allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

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

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

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

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

        @NotNull
        public static @NotNull 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

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

        public static NSSet<?> 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​(@NotNull
                                                          @NotNull NSArray<_ObjectType> array)
      • setWithObject

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

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

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

        public static <_ObjectType> NSSet<?> setWithSet​(@NotNull
                                                        @NotNull 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​(@NotNull
                                                        @NotNull NSObject observer,
                                                        @NotNull
                                                        @NotNull java.lang.String keyPath,
                                                        long options,
                                                        @Nullable
                                                        @Nullable 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​(@NotNull
                                      _ObjectType anObject)
      • copyWithZone

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

        public long count()
      • countByEnumeratingWithStateObjectsCount

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

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

        @NotNull
        public @NotNull NSSet<_ObjectType> filteredSetUsingPredicate​(@NotNull
                                                                     @NotNull NSPredicate predicate)
        evaluate a predicate against a set of objects and return a filtered set API-Since: 3.0
      • initWithCoder

        public NSSet<?> initWithCoder​(@NotNull
                                      @NotNull NSCoder coder)
        Description copied from interface: NSCoding
        NS_DESIGNATED_INITIALIZER
        Specified by:
        initWithCoder in interface NSCoding
      • initWithObjects

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

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

        public NSSet<?> initWithSetCopyItems​(@NotNull
                                             @NotNull NSSet<_ObjectType> set,
                                             boolean flag)
      • intersectsSet

        public boolean intersectsSet​(@NotNull
                                     @NotNull NSSet<_ObjectType> otherSet)
      • isEqualToSet

        public boolean isEqualToSet​(@NotNull
                                    @NotNull NSSet<_ObjectType> otherSet)
      • isSubsetOfSet

        public boolean isSubsetOfSet​(@NotNull
                                     @NotNull NSSet<_ObjectType> otherSet)
      • makeObjectsPerformSelector

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

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

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

        public void removeObserverForKeyPath​(@NotNull
                                             @NotNull NSObject observer,
                                             @NotNull
                                             @NotNull java.lang.String keyPath)
        Overrides:
        removeObserverForKeyPath in class NSObject
      • removeObserverForKeyPathContext

        public void removeObserverForKeyPathContext​(@NotNull
                                                    @NotNull NSObject observer,
                                                    @NotNull
                                                    @NotNull java.lang.String keyPath,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.VoidPtr context)
        API-Since: 5.0
        Overrides:
        removeObserverForKeyPathContext in class NSObject
      • setByAddingObjectsFromSet

        @NotNull
        public @NotNull NSSet<_ObjectType> setByAddingObjectsFromSet​(@NotNull
                                                                     @NotNull NSSet<_ObjectType> other)
        API-Since: 2.0
      • setValueForKey

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

        @NotNull
        public @NotNull NSArray<_ObjectType> sortedArrayUsingDescriptors​(@NotNull
                                                                         @NotNull NSArray<? extends NSSortDescriptor> sortDescriptors)
        returns a new array by sorting the objects of the receiver API-Since: 4.0
      • _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

        @NotNull
        public @NotNull java.lang.Object valueForKey​(@NotNull
                                                     @NotNull 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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.