public class NSMutableArray<_ObjectType> extends NSArray<_ObjectType>
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSMutableArray.Block_sortUsingComparator |
static interface |
NSMutableArray.Block_sortWithOptionsUsingComparator |
static interface |
NSMutableArray.Function_sortUsingFunctionContext |
NSArray.Block_differenceFromArrayWithOptionsUsingEquivalenceTest, NSArray.Block_enumerateObjectsAtIndexesOptionsUsingBlock, NSArray.Block_enumerateObjectsUsingBlock, NSArray.Block_enumerateObjectsWithOptionsUsingBlock, NSArray.Block_indexesOfObjectsAtIndexesOptionsPassingTest, NSArray.Block_indexesOfObjectsPassingTest, NSArray.Block_indexesOfObjectsWithOptionsPassingTest, NSArray.Block_indexOfObjectAtIndexesOptionsPassingTest, NSArray.Block_indexOfObjectInSortedRangeOptionsUsingComparator, NSArray.Block_indexOfObjectPassingTest, NSArray.Block_indexOfObjectWithOptionsPassingTest, NSArray.Block_sortedArrayUsingComparator, NSArray.Block_sortedArrayWithOptionsUsingComparator, NSArray.Function_sortedArrayUsingFunctionContext, NSArray.Function_sortedArrayUsingFunctionContextHintNSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSMutableArray(org.moe.natj.general.Pointer peer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_supportsSecureCoding()
This property must return YES on all classes that allow secure coding.
|
static boolean |
accessInstanceVariablesDirectly() |
boolean |
add(_ObjectType e) |
void |
add(int index,
_ObjectType element) |
boolean |
addAll(java.util.Collection<? extends _ObjectType> c) |
boolean |
addAll(int index,
java.util.Collection<? extends _ObjectType> c) |
void |
addObject(_ObjectType anObject) |
void |
addObjectsFromArray(NSArray<_ObjectType> otherArray) |
static NSMutableArray<?> |
alloc() |
static NSMutableArray<?> |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
void |
applyDifference(NSOrderedCollectionDifference<_ObjectType> difference) |
static <_ObjectType> |
array() |
static <_ObjectType> |
arrayWithArray(NSArray<_ObjectType> array) |
static <_ObjectType> |
arrayWithCapacity(long numItems) |
static <_ObjectType> |
arrayWithContentsOfFile(java.lang.String path) |
static <_ObjectType> |
arrayWithContentsOfURL(NSURL url) |
static <_ObjectType> |
arrayWithContentsOfURLError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error) |
static <_ObjectType> |
arrayWithObject(_ObjectType anObject) |
static <_ObjectType> |
arrayWithObjects(_ObjectType firstObj,
java.lang.Object... varargs) |
static <_ObjectType> |
arrayWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
long cnt) |
static boolean |
automaticallyNotifiesObserversForKey(java.lang.String key) |
static void |
cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget) |
static void |
cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument) |
static NSArray<java.lang.String> |
classFallbacksForKeyedArchiver() |
static org.moe.natj.objc.Class |
classForKeyedUnarchiver() |
void |
clear() |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
exchangeObjectAtIndexWithObjectAtIndex(long idx1,
long idx2) |
void |
filterUsingPredicate(NSPredicate predicate)
evaluate a predicate against an array of objects and filter the mutable array directly
|
static long |
hash_static() |
NSMutableArray<?> |
init() |
NSMutableArray<?> |
initWithArray(NSArray<_ObjectType> array) |
NSMutableArray<?> |
initWithArrayCopyItems(NSArray<_ObjectType> array,
boolean flag) |
NSMutableArray<?> |
initWithCapacity(long numItems) |
NSMutableArray<?> |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSMutableArray<_ObjectType> |
initWithContentsOfFile(java.lang.String path) |
NSMutableArray<_ObjectType> |
initWithContentsOfURL(NSURL url) |
NSArray<_ObjectType> |
initWithContentsOfURLError(NSURL url,
org.moe.natj.general.ptr.Ptr<NSError> error)
Reads array stored in NSPropertyList format from the specified url.
|
NSMutableArray<?> |
initWithObjects(_ObjectType firstObj,
java.lang.Object... varargs) |
NSMutableArray<?> |
initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
long cnt) |
void |
insertObjectAtIndex(_ObjectType anObject,
long index) |
void |
insertObjectsAtIndexes(NSArray<_ObjectType> objects,
NSIndexSet indexes) |
static NSObject.Function_instanceMethodForSelector_ret |
instanceMethodForSelector(org.moe.natj.objc.SEL aSelector) |
static NSMethodSignature |
instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
instancesRespondToSelector(org.moe.natj.objc.SEL aSelector) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
java.util.Iterator<_ObjectType> |
iterator() |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<_ObjectType> |
listIterator() |
java.util.ListIterator<_ObjectType> |
listIterator(int index) |
static NSMutableArray<?> |
new_objc() |
_ObjectType |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> c) |
void |
removeAllObjects() |
void |
removeLastObject() |
void |
removeObject(_ObjectType anObject) |
void |
removeObjectAtIndex(long index) |
void |
removeObjectIdenticalTo(_ObjectType anObject) |
void |
removeObjectIdenticalToInRange(_ObjectType anObject,
NSRange range) |
void |
removeObjectInRange(_ObjectType anObject,
NSRange range) |
void |
removeObjectsAtIndexes(NSIndexSet indexes) |
void |
removeObjectsFromIndicesNumIndices(org.moe.natj.general.ptr.NUIntPtr indices,
long cnt)
Deprecated.
|
void |
removeObjectsInArray(NSArray<_ObjectType> otherArray) |
void |
removeObjectsInRange(NSRange range) |
void |
replaceObjectAtIndexWithObject(long index,
_ObjectType anObject) |
void |
replaceObjectsAtIndexesWithObjects(NSIndexSet indexes,
NSArray<_ObjectType> objects) |
void |
replaceObjectsInRangeWithObjectsFromArray(NSRange range,
NSArray<_ObjectType> otherArray) |
void |
replaceObjectsInRangeWithObjectsFromArrayRange(NSRange range,
NSArray<_ObjectType> otherArray,
NSRange otherRange) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
boolean |
retainAll(java.util.Collection<?> c) |
_ObjectType |
set(int index,
_ObjectType element) |
void |
setArray(NSArray<_ObjectType> otherArray) |
void |
setObjectAtIndexedSubscript(_ObjectType obj,
long idx) |
static void |
setVersion_static(long aVersion) |
void |
sortUsingComparator(NSMutableArray.Block_sortUsingComparator cmptr) |
void |
sortUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
sorts the array itself
|
void |
sortUsingFunctionContext(NSMutableArray.Function_sortUsingFunctionContext compare,
org.moe.natj.general.ptr.VoidPtr context) |
void |
sortUsingSelector(org.moe.natj.objc.SEL comparator) |
void |
sortWithOptionsUsingComparator(long opts,
NSMutableArray.Block_sortWithOptionsUsingComparator cmptr) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
static long |
version_static() |
addObserverForKeyPathOptionsContext, addObserverToObjectsAtIndexesForKeyPathOptionsContext, arrayByAddingObject, arrayByAddingObjectsFromArray, arrayByApplyingDifference, componentsJoinedByString, contains, containsAll, containsObject, copyWithZone, count, countByEnumeratingWithStateObjectsCount, description, descriptionWithLocale, descriptionWithLocaleIndent, differenceFromArray, differenceFromArrayWithOptions, differenceFromArrayWithOptionsUsingEquivalenceTest, encodeWithCoder, enumerateObjectsAtIndexesOptionsUsingBlock, enumerateObjectsUsingBlock, enumerateObjectsWithOptionsUsingBlock, equals, filteredArrayUsingPredicate, firstObject, firstObjectCommonWithArray, get, getObjects, getObjectsRange, hashCode, indexesOfObjectsAtIndexesOptionsPassingTest, indexesOfObjectsPassingTest, indexesOfObjectsWithOptionsPassingTest, indexOf, indexOfObject, indexOfObjectAtIndexesOptionsPassingTest, indexOfObjectIdenticalTo, indexOfObjectIdenticalToInRange, indexOfObjectInRange, indexOfObjectInSortedRangeOptionsUsingComparator, indexOfObjectPassingTest, indexOfObjectWithOptionsPassingTest, isEmpty, isEqualToArray, lastObject, makeObjectsPerformSelector, makeObjectsPerformSelectorWithObject, mutableCopyWithZone, objectAtIndex, objectAtIndexedSubscript, objectEnumerator, objectsAtIndexes, pathsMatchingExtensions, removeObserverForKeyPath, removeObserverForKeyPathContext, removeObserverFromObjectsAtIndexesForKeyPath, removeObserverFromObjectsAtIndexesForKeyPathContext, reverseObjectEnumerator, setValueForKey, shuffledArray, shuffledArrayWithRandomSource, size, sortedArrayHint, sortedArrayUsingComparator, sortedArrayUsingDescriptors, sortedArrayUsingFunctionContext, sortedArrayUsingFunctionContextHint, sortedArrayUsingSelector, sortedArrayWithOptionsUsingComparator, subarrayWithRange, subList, toArray, toArray, valueForKey, writeToFileAtomically, writeToURLAtomically, writeToURLErroraccessibilityActivate, accessibilityActivationPoint, accessibilityAssistiveTechnologyFocusedIdentifiers, accessibilityAttributedHint, accessibilityAttributedLabel, accessibilityAttributedUserInputLabels, accessibilityAttributedValue, accessibilityContainerType, accessibilityCustomActions, accessibilityCustomRotors, accessibilityDecrement, accessibilityDragSourceDescriptors, accessibilityDropPointDescriptors, accessibilityElementAtIndex, accessibilityElementCount, accessibilityElementDidBecomeFocused, accessibilityElementDidLoseFocus, accessibilityElementIsFocused, accessibilityElements, accessibilityElementsHidden, accessibilityFrame, accessibilityHint, accessibilityIncrement, accessibilityLabel, accessibilityLanguage, accessibilityNavigationStyle, accessibilityPath, accessibilityPerformEscape, accessibilityPerformMagicTap, accessibilityRespondsToUserInteraction, accessibilityScroll, accessibilityTextualContext, accessibilityTraits, accessibilityUserInputLabels, accessibilityValue, accessibilityViewIsModal, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, dictionaryWithValuesForKeys, didChangeValueForKey, didChangeValueForKeyWithSetMutationUsingObjects, didChangeValuesAtIndexesForKey, doesNotRecognizeSelector, fileManagerShouldProceedAfterError, fileManagerWillProcessPath, finalize_objc, forwardingTargetForSelector, forwardInvocation, hash, indexOfAccessibilityElement, isAccessibilityElement, isEqual, isKindOfClass, isMemberOfClass, isProxy, methodForSelector, methodSignatureForSelector, mutableArrayValueForKey, mutableArrayValueForKeyPath, mutableCopy, mutableOrderedSetValueForKey, mutableOrderedSetValueForKeyPath, mutableSetValueForKey, mutableSetValueForKeyPath, observationInfo, observeValueForKeyPathOfObjectChangeContext, performSelector, performSelectorInBackgroundWithObject, performSelectorOnMainThreadWithObjectWaitUntilDone, performSelectorOnMainThreadWithObjectWaitUntilDoneModes, performSelectorOnThreadWithObjectWaitUntilDone, performSelectorOnThreadWithObjectWaitUntilDoneModes, performSelectorWithObject, performSelectorWithObjectAfterDelay, performSelectorWithObjectAfterDelayInModes, performSelectorWithObjectWithObject, prepareForInterfaceBuilder, provideImageDataBytesPerRowOrigin_Size_UserInfo, replacementObjectForCoder, replacementObjectForKeyedArchiver, respondsToSelector, self, setAccessibilityActivationPoint, setAccessibilityAttributedHint, setAccessibilityAttributedLabel, setAccessibilityAttributedUserInputLabels, setAccessibilityAttributedValue, setAccessibilityContainerType, setAccessibilityCustomActions, setAccessibilityCustomRotors, setAccessibilityDragSourceDescriptors, setAccessibilityDropPointDescriptors, setAccessibilityElements, setAccessibilityElementsHidden, setAccessibilityFrame, setAccessibilityHint, setAccessibilityLabel, setAccessibilityLanguage, setAccessibilityNavigationStyle, setAccessibilityPath, setAccessibilityRespondsToUserInteraction, setAccessibilityTextualContext, setAccessibilityTraits, setAccessibilityUserInputLabels, setAccessibilityValue, setAccessibilityViewIsModal, setIsAccessibilityElement, setNilValueForKey, setObservationInfo, setShouldGroupAccessibilityChildren, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSMutableArray<?> alloc()
public static NSMutableArray<?> allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
public static <_ObjectType> NSMutableArray<?> array()
public static <_ObjectType> NSMutableArray<?> arrayWithArray(NSArray<_ObjectType> array)
public static <_ObjectType> NSMutableArray<?> arrayWithCapacity(long numItems)
public static <_ObjectType> NSMutableArray<_ObjectType> arrayWithContentsOfFile(java.lang.String path)
public static <_ObjectType> NSMutableArray<_ObjectType> arrayWithContentsOfURL(NSURL url)
public static <_ObjectType> NSMutableArray<?> arrayWithObject(_ObjectType anObject)
public static <_ObjectType> NSMutableArray<?> arrayWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
public static <_ObjectType> NSMutableArray<?> arrayWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
public static boolean automaticallyNotifiesObserversForKey(java.lang.String key)
public static void cancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)
public static void cancelPreviousPerformRequestsWithTargetSelectorObject(java.lang.Object aTarget,
org.moe.natj.objc.SEL aSelector,
java.lang.Object anArgument)
public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
public static org.moe.natj.objc.Class classForKeyedUnarchiver()
public static java.lang.String debugDescription_static()
public static java.lang.String description_static()
public static long hash_static()
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
public static NSMethodSignature instanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)
public static boolean instancesRespondToSelector(org.moe.natj.objc.SEL aSelector)
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
public static NSMutableArray<?> new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public void addObject(_ObjectType anObject)
public void addObjectsFromArray(NSArray<_ObjectType> otherArray)
public void exchangeObjectAtIndexWithObjectAtIndex(long idx1,
long idx2)
public void filterUsingPredicate(NSPredicate predicate)
public NSMutableArray<?> init()
init in class NSArray<_ObjectType>public NSMutableArray<?> initWithArray(NSArray<_ObjectType> array)
initWithArray in class NSArray<_ObjectType>public NSMutableArray<?> initWithArrayCopyItems(NSArray<_ObjectType> array, boolean flag)
initWithArrayCopyItems in class NSArray<_ObjectType>public NSMutableArray<?> initWithCapacity(long numItems)
public NSMutableArray<?> initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodinginitWithCoder in class NSArray<_ObjectType>public NSMutableArray<_ObjectType> initWithContentsOfFile(java.lang.String path)
initWithContentsOfFile in class NSArray<_ObjectType>public NSMutableArray<_ObjectType> initWithContentsOfURL(NSURL url)
initWithContentsOfURL in class NSArray<_ObjectType>public NSMutableArray<?> initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
initWithObjects in class NSArray<_ObjectType>public NSMutableArray<?> initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
initWithObjectsCount in class NSArray<_ObjectType>public void insertObjectAtIndex(_ObjectType anObject, long index)
public void insertObjectsAtIndexes(NSArray<_ObjectType> objects, NSIndexSet indexes)
public void removeAllObjects()
public void removeLastObject()
public void removeObject(_ObjectType anObject)
public void removeObjectInRange(_ObjectType anObject, NSRange range)
public void removeObjectAtIndex(long index)
public void removeObjectIdenticalTo(_ObjectType anObject)
public void removeObjectIdenticalToInRange(_ObjectType anObject, NSRange range)
public void removeObjectsAtIndexes(NSIndexSet indexes)
@Deprecated
public void removeObjectsFromIndicesNumIndices(org.moe.natj.general.ptr.NUIntPtr indices,
long cnt)
public void removeObjectsInArray(NSArray<_ObjectType> otherArray)
public void removeObjectsInRange(NSRange range)
public void replaceObjectAtIndexWithObject(long index,
_ObjectType anObject)
public void replaceObjectsAtIndexesWithObjects(NSIndexSet indexes, NSArray<_ObjectType> objects)
public void replaceObjectsInRangeWithObjectsFromArray(NSRange range, NSArray<_ObjectType> otherArray)
public void replaceObjectsInRangeWithObjectsFromArrayRange(NSRange range, NSArray<_ObjectType> otherArray, NSRange otherRange)
public void setArray(NSArray<_ObjectType> otherArray)
public void setObjectAtIndexedSubscript(_ObjectType obj, long idx)
public void sortUsingComparator(NSMutableArray.Block_sortUsingComparator cmptr)
public void sortUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
public void sortUsingFunctionContext(NSMutableArray.Function_sortUsingFunctionContext compare, org.moe.natj.general.ptr.VoidPtr context)
public void sortUsingSelector(org.moe.natj.objc.SEL comparator)
public void sortWithOptionsUsingComparator(long opts,
NSMutableArray.Block_sortWithOptionsUsingComparator cmptr)
public boolean add(_ObjectType e)
add in interface java.util.Collection<_ObjectType>add in interface java.util.List<_ObjectType>add in class NSArray<_ObjectType>public void add(int index,
_ObjectType element)
add in interface java.util.List<_ObjectType>add in class NSArray<_ObjectType>public boolean addAll(java.util.Collection<? extends _ObjectType> c)
addAll in interface java.util.Collection<_ObjectType>addAll in interface java.util.List<_ObjectType>addAll in class NSArray<_ObjectType>public boolean addAll(int index,
java.util.Collection<? extends _ObjectType> c)
addAll in interface java.util.List<_ObjectType>addAll in class NSArray<_ObjectType>public void clear()
clear in interface java.util.Collection<_ObjectType>clear in interface java.util.List<_ObjectType>clear in class NSArray<_ObjectType>public java.util.Iterator<_ObjectType> iterator()
iterator in interface java.lang.Iterable<_ObjectType>iterator in interface java.util.Collection<_ObjectType>iterator in interface java.util.List<_ObjectType>iterator in class NSArray<_ObjectType>public int lastIndexOf(java.lang.Object o)
lastIndexOf in interface java.util.List<_ObjectType>lastIndexOf in class NSArray<_ObjectType>public java.util.ListIterator<_ObjectType> listIterator()
listIterator in interface java.util.List<_ObjectType>listIterator in class NSArray<_ObjectType>public java.util.ListIterator<_ObjectType> listIterator(int index)
listIterator in interface java.util.List<_ObjectType>listIterator in class NSArray<_ObjectType>public boolean remove(java.lang.Object o)
remove in interface java.util.Collection<_ObjectType>remove in interface java.util.List<_ObjectType>remove in class NSArray<_ObjectType>public _ObjectType remove(int index)
remove in interface java.util.List<_ObjectType>remove in class NSArray<_ObjectType>public boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<_ObjectType>removeAll in interface java.util.List<_ObjectType>removeAll in class NSArray<_ObjectType>public boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<_ObjectType>retainAll in interface java.util.List<_ObjectType>retainAll in class NSArray<_ObjectType>public _ObjectType set(int index, _ObjectType element)
set in interface java.util.List<_ObjectType>set in class NSArray<_ObjectType>public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding_supportsSecureCoding in class NSArray<_ObjectType>public static <_ObjectType> NSArray<_ObjectType> arrayWithContentsOfURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
public NSArray<_ObjectType> initWithContentsOfURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
NSArrayinitWithContentsOfURLError in class NSArray<_ObjectType>public void applyDifference(NSOrderedCollectionDifference<_ObjectType> difference)