Class NSMutableArray<_ObjectType>

    • Constructor Detail

      • NSMutableArray

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSMutableArray<?> allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • arrayWithArray

        public static <_ObjectType> NSMutableArray<?> arrayWithArray​(@NotNull
                                                                     @NotNull NSArray<_ObjectType> array)
      • arrayWithCapacity

        public static <_ObjectType> NSMutableArray<?> arrayWithCapacity​(long numItems)
      • arrayWithContentsOfFile

        @Nullable
        public static <_ObjectType> @Nullable NSMutableArray<_ObjectType> arrayWithContentsOfFile​(@NotNull
                                                                                                  @NotNull java.lang.String path)
      • arrayWithContentsOfURL

        @Nullable
        public static <_ObjectType> @Nullable NSMutableArray<_ObjectType> arrayWithContentsOfURL​(@NotNull
                                                                                                 @NotNull NSURL url)
      • arrayWithObject

        public static <_ObjectType> NSMutableArray<?> arrayWithObject​(@NotNull
                                                                      _ObjectType anObject)
      • arrayWithObjects

        public static <_ObjectType> NSMutableArray<?> arrayWithObjects​(@NotNull
                                                                       _ObjectType firstObj,
                                                                       java.lang.Object... varargs)
      • arrayWithObjectsCount

        public static <_ObjectType> NSMutableArray<?> arrayWithObjectsCount​(@NotNull
                                                                            @NotNull org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                                            long cnt)
      • 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()
      • description_static

        public static java.lang.String description_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)
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • addObject

        public void addObject​(@NotNull
                              _ObjectType anObject)
      • addObjectsFromArray

        public void addObjectsFromArray​(@NotNull
                                        @NotNull NSArray<_ObjectType> otherArray)
      • exchangeObjectAtIndexWithObjectAtIndex

        public void exchangeObjectAtIndexWithObjectAtIndex​(long idx1,
                                                           long idx2)
      • filterUsingPredicate

        public void filterUsingPredicate​(@NotNull
                                         @NotNull NSPredicate predicate)
        evaluate a predicate against an array of objects and filter the mutable array directly
      • initWithCapacity

        public NSMutableArray<?> initWithCapacity​(long numItems)
      • insertObjectAtIndex

        public void insertObjectAtIndex​(@NotNull
                                        _ObjectType anObject,
                                        long index)
      • insertObjectsAtIndexes

        public void insertObjectsAtIndexes​(@NotNull
                                           @NotNull NSArray<_ObjectType> objects,
                                           @NotNull
                                           @NotNull NSIndexSet indexes)
      • removeAllObjects

        public void removeAllObjects()
      • removeLastObject

        public void removeLastObject()
      • removeObject

        public void removeObject​(@NotNull
                                 _ObjectType anObject)
      • removeObjectInRange

        public void removeObjectInRange​(@NotNull
                                        _ObjectType anObject,
                                        NSRange range)
      • removeObjectAtIndex

        public void removeObjectAtIndex​(long index)
      • removeObjectIdenticalTo

        public void removeObjectIdenticalTo​(@NotNull
                                            _ObjectType anObject)
      • removeObjectIdenticalToInRange

        public void removeObjectIdenticalToInRange​(@NotNull
                                                   _ObjectType anObject,
                                                   NSRange range)
      • removeObjectsAtIndexes

        public void removeObjectsAtIndexes​(@NotNull
                                           @NotNull NSIndexSet indexes)
      • removeObjectsFromIndicesNumIndices

        @Deprecated
        public void removeObjectsFromIndicesNumIndices​(@NotNull
                                                       @NotNull org.moe.natj.general.ptr.NUIntPtr indices,
                                                       long cnt)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 4.0 Deprecated-Message: Not supported
      • removeObjectsInArray

        public void removeObjectsInArray​(@NotNull
                                         @NotNull NSArray<_ObjectType> otherArray)
      • removeObjectsInRange

        public void removeObjectsInRange​(NSRange range)
      • replaceObjectAtIndexWithObject

        public void replaceObjectAtIndexWithObject​(long index,
                                                   @NotNull
                                                   _ObjectType anObject)
      • replaceObjectsAtIndexesWithObjects

        public void replaceObjectsAtIndexesWithObjects​(@NotNull
                                                       @NotNull NSIndexSet indexes,
                                                       @NotNull
                                                       @NotNull NSArray<_ObjectType> objects)
      • replaceObjectsInRangeWithObjectsFromArray

        public void replaceObjectsInRangeWithObjectsFromArray​(NSRange range,
                                                              @NotNull
                                                              @NotNull NSArray<_ObjectType> otherArray)
      • replaceObjectsInRangeWithObjectsFromArrayRange

        public void replaceObjectsInRangeWithObjectsFromArrayRange​(NSRange range,
                                                                   @NotNull
                                                                   @NotNull NSArray<_ObjectType> otherArray,
                                                                   NSRange otherRange)
      • setObjectAtIndexedSubscript

        public void setObjectAtIndexedSubscript​(@NotNull
                                                _ObjectType obj,
                                                long idx)
        API-Since: 6.0
      • sortUsingDescriptors

        public void sortUsingDescriptors​(@NotNull
                                         @NotNull NSArray<? extends NSSortDescriptor> sortDescriptors)
        sorts the array itself
      • sortUsingSelector

        public void sortUsingSelector​(@NotNull
                                      @NotNull org.moe.natj.objc.SEL comparator)
      • remove

        public boolean remove​(java.lang.Object o)
        Specified by:
        remove in interface java.util.Collection<_ObjectType>
        Specified by:
        remove in interface java.util.List<_ObjectType>
        Overrides:
        remove in class NSArray<_ObjectType>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> c)
        Specified by:
        removeAll in interface java.util.Collection<_ObjectType>
        Specified by:
        removeAll in interface java.util.List<_ObjectType>
        Overrides:
        removeAll in class NSArray<_ObjectType>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> c)
        Specified by:
        retainAll in interface java.util.Collection<_ObjectType>
        Specified by:
        retainAll in interface java.util.List<_ObjectType>
        Overrides:
        retainAll in class NSArray<_ObjectType>
      • _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
        Overrides:
        _supportsSecureCoding in class NSArray<_ObjectType>
      • arrayWithContentsOfURLError

        @Nullable
        public static <_ObjectType> @Nullable NSArray<_ObjectType> arrayWithContentsOfURLError​(@NotNull
                                                                                               @NotNull NSURL url,
                                                                                               @Nullable
                                                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSError> error)
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.