Package apple.foundation
Class NSArray<_ObjectType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSArray<_ObjectType>
-
- All Implemented Interfaces:
CKRecordValue,NSCoding,NSCopying,NSFastEnumeration,NSMutableCopying,NSSecureCoding,NSObject,java.lang.Iterable<_ObjectType>,java.util.Collection<_ObjectType>,java.util.List<_ObjectType>
- Direct Known Subclasses:
NSMutableArray
public class NSArray<_ObjectType> extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration, CKRecordValue, java.util.List<_ObjectType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSArray(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean_supportsSecureCoding()This property must return YES on all classes that allow secure coding.static booleanaccessInstanceVariablesDirectly()voidadd(int index, _ObjectType element)booleanadd(_ObjectType e)booleanaddAll(int index, java.util.Collection<? extends _ObjectType> c)booleanaddAll(java.util.Collection<? extends _ObjectType> c)voidaddObserverForKeyPathOptionsContext(NSObject observer, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)NSArrays are not observable, so these methods raise exceptions when invoked on NSArrays.voidaddObserverToObjectsAtIndexesForKeyPathOptionsContext(NSObject observer, NSIndexSet indexes, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)Register or deregister as an observer of the values at a key path relative to each indexed element of the array.static NSArray<?>alloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)static <_ObjectType>
NSArray<?>array()NSArray<_ObjectType>arrayByAddingObject(_ObjectType anObject)NSArray<_ObjectType>arrayByAddingObjectsFromArray(NSArray<_ObjectType> otherArray)NSArray<_ObjectType>arrayByApplyingDifference(NSOrderedCollectionDifference<_ObjectType> difference)static <_ObjectType>
NSArray<?>arrayWithArray(NSArray<_ObjectType> array)static <_ObjectType>
NSArray<_ObjectType>arrayWithContentsOfFile(java.lang.String path)These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release.static <_ObjectType>
NSArray<_ObjectType>arrayWithContentsOfURL(NSURL url)static <_ObjectType>
NSArray<_ObjectType>arrayWithContentsOfURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)Reads array stored in NSPropertyList format from the specified url.static <_ObjectType>
NSArray<?>arrayWithObject(_ObjectType anObject)static <_ObjectType>
NSArray<?>arrayWithObjects(_ObjectType firstObj, java.lang.Object... varargs)static <_ObjectType>
NSArray<?>arrayWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)static booleanautomaticallyNotifiesObserversForKey(java.lang.String key)static voidcancelPreviousPerformRequestsWithTarget(java.lang.Object aTarget)static voidcancelPreviousPerformRequestsWithTargetSelectorObject(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.ClassclassForKeyedUnarchiver()voidclear()java.lang.StringcomponentsJoinedByString(java.lang.String separator)booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleancontainsObject(_ObjectType anObject)java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)longcount()longcountByEnumeratingWithStateObjectsCount(org.moe.natj.general.ptr.VoidPtr state, org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer, long len)static java.lang.StringdebugDescription_static()java.lang.Stringdescription()java.lang.StringdescriptionWithLocale(java.lang.Object locale)java.lang.StringdescriptionWithLocaleIndent(java.lang.Object locale, long level)NSOrderedCollectionDifference<_ObjectType>differenceFromArray(NSArray<_ObjectType> other)Uses isEqual: to determine the difference between the parameter and the receiverNSOrderedCollectionDifference<_ObjectType>differenceFromArrayWithOptions(NSArray<_ObjectType> other, long options)NSOrderedCollectionDifference<_ObjectType>differenceFromArrayWithOptionsUsingEquivalenceTest(NSArray<_ObjectType> other, long options, NSArray.Block_differenceFromArrayWithOptionsUsingEquivalenceTest block)voidencodeWithCoder(NSCoder coder)voidenumerateObjectsAtIndexesOptionsUsingBlock(NSIndexSet s, long opts, NSArray.Block_enumerateObjectsAtIndexesOptionsUsingBlock block)voidenumerateObjectsUsingBlock(NSArray.Block_enumerateObjectsUsingBlock block)voidenumerateObjectsWithOptionsUsingBlock(long opts, NSArray.Block_enumerateObjectsWithOptionsUsingBlock block)booleanequals(java.lang.Object o)NSArray<_ObjectType>filteredArrayUsingPredicate(NSPredicate predicate)evaluate a predicate against an array of objects and return a filtered array_ObjectTypefirstObject()_ObjectTypefirstObjectCommonWithArray(NSArray<_ObjectType> otherArray)_ObjectTypeget(int index)voidgetObjects(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects)This method is unsafe because it could potentially cause buffer overruns.voidgetObjectsRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects, NSRange range)static longhash_static()inthashCode()NSIndexSetindexesOfObjectsAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSArray.Block_indexesOfObjectsAtIndexesOptionsPassingTest predicate)NSIndexSetindexesOfObjectsPassingTest(NSArray.Block_indexesOfObjectsPassingTest predicate)NSIndexSetindexesOfObjectsWithOptionsPassingTest(long opts, NSArray.Block_indexesOfObjectsWithOptionsPassingTest predicate)intindexOf(java.lang.Object o)longindexOfObject(_ObjectType anObject)longindexOfObjectAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSArray.Block_indexOfObjectAtIndexesOptionsPassingTest predicate)longindexOfObjectIdenticalTo(_ObjectType anObject)longindexOfObjectIdenticalToInRange(_ObjectType anObject, NSRange range)longindexOfObjectInRange(_ObjectType anObject, NSRange range)longindexOfObjectInSortedRangeOptionsUsingComparator(_ObjectType obj, NSRange r, long opts, NSArray.Block_indexOfObjectInSortedRangeOptionsUsingComparator cmp)binary searchlongindexOfObjectPassingTest(NSArray.Block_indexOfObjectPassingTest predicate)longindexOfObjectWithOptionsPassingTest(long opts, NSArray.Block_indexOfObjectWithOptionsPassingTest predicate)NSArray<?>init()NSArray<?>initWithArray(NSArray<_ObjectType> array)NSArray<?>initWithArrayCopyItems(NSArray<_ObjectType> array, boolean flag)NSArray<?>initWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERNSArray<_ObjectType>initWithContentsOfFile(java.lang.String path)NSArray<_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.NSArray<?>initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)NSArray<?>initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)static NSObject.Function_instanceMethodForSelector_retinstanceMethodForSelector(org.moe.natj.objc.SEL aSelector)static NSMethodSignatureinstanceMethodSignatureForSelector(org.moe.natj.objc.SEL aSelector)static booleaninstancesRespondToSelector(org.moe.natj.objc.SEL aSelector)booleanisEmpty()booleanisEqualToArray(NSArray<_ObjectType> otherArray)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)java.util.Iterator<_ObjectType>iterator()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)intlastIndexOf(java.lang.Object o)_ObjectTypelastObject()java.util.ListIterator<_ObjectType>listIterator()java.util.ListIterator<_ObjectType>listIterator(int index)voidmakeObjectsPerformSelector(org.moe.natj.objc.SEL aSelector)voidmakeObjectsPerformSelectorWithObject(org.moe.natj.objc.SEL aSelector, java.lang.Object argument)java.lang.ObjectmutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.Objectnew_objc()_ObjectTypeobjectAtIndex(long index)_ObjectTypeobjectAtIndexedSubscript(long idx)NSEnumerator<_ObjectType>objectEnumerator()NSArray<_ObjectType>objectsAtIndexes(NSIndexSet indexes)NSArray<java.lang.String>pathsMatchingExtensions(NSArray<java.lang.String> filterTypes)_ObjectTyperemove(int index)booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)voidremoveObserverForKeyPath(NSObject observer, java.lang.String keyPath)voidremoveObserverForKeyPathContext(NSObject observer, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)voidremoveObserverFromObjectsAtIndexesForKeyPath(NSObject observer, NSIndexSet indexes, java.lang.String keyPath)voidremoveObserverFromObjectsAtIndexesForKeyPathContext(NSObject observer, NSIndexSet indexes, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)booleanretainAll(java.util.Collection<?> c)NSEnumerator<_ObjectType>reverseObjectEnumerator()_ObjectTypeset(int index, _ObjectType element)voidsetValueForKey(java.lang.Object value, java.lang.String key)Invoke -setValue:forKey: on each of the receiver's elements.static voidsetVersion_static(long aVersion)NSArray<_ObjectType>shuffledArray()Returns a shuffled instance of this array using the systems underlying random source, as with [GKRandomSource sharedRandom]NSArray<_ObjectType>shuffledArrayWithRandomSource(GKRandomSource randomSource)Returns a shuffled instance of this array using the given random source.intsize()NSDatasortedArrayHint()NSArray<_ObjectType>sortedArrayUsingComparator(NSArray.Block_sortedArrayUsingComparator cmptr)NSArray<_ObjectType>sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)returns a new array by sorting the objects of the receiverNSArray<_ObjectType>sortedArrayUsingFunctionContext(NSArray.Function_sortedArrayUsingFunctionContext comparator, org.moe.natj.general.ptr.VoidPtr context)NSArray<_ObjectType>sortedArrayUsingFunctionContextHint(NSArray.Function_sortedArrayUsingFunctionContextHint comparator, org.moe.natj.general.ptr.VoidPtr context, NSData hint)NSArray<_ObjectType>sortedArrayUsingSelector(org.moe.natj.objc.SEL comparator)NSArray<_ObjectType>sortedArrayWithOptionsUsingComparator(long opts, NSArray.Block_sortedArrayWithOptionsUsingComparator cmptr)NSArray<_ObjectType>subarrayWithRange(NSRange range)java.util.List<_ObjectType>subList(int fromIndex, int toIndex)static org.moe.natj.objc.Classsuperclass_static()static <_ObjectType>
booleansupportsSecureCoding()java.lang.Object[]toArray()java.lang.Object[]toArray(java.lang.Object[] a)java.lang.ObjectvalueForKey(java.lang.String key)Return an array containing the results of invoking -valueForKey: on each of the receiver's elements.static longversion_static()booleanwriteToFileAtomically(java.lang.String path, boolean useAuxiliaryFile)booleanwriteToURLAtomically(NSURL url, boolean atomically)booleanwriteToURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0).-
Methods inherited from class apple.NSObject
accessibilityActivate, 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, description_static, 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, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSArray<?> alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
array
public static <_ObjectType> NSArray<?> array()
-
arrayWithContentsOfFile
public static <_ObjectType> NSArray<_ObjectType> arrayWithContentsOfFile(java.lang.String path)
These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead.
-
arrayWithContentsOfURL
public static <_ObjectType> NSArray<_ObjectType> arrayWithContentsOfURL(NSURL url)
-
arrayWithObject
public static <_ObjectType> NSArray<?> arrayWithObject(_ObjectType anObject)
-
arrayWithObjects
public static <_ObjectType> NSArray<?> arrayWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
arrayWithObjectsCount
public static <_ObjectType> NSArray<?> arrayWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
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()
-
instanceMethodForSelector
public static NSObject.Function_instanceMethodForSelector_ret instanceMethodForSelector(org.moe.natj.objc.SEL aSelector)
-
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)
-
setVersion_static
public static void setVersion_static(long aVersion)
-
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)
NSArrays are not observable, so these methods raise exceptions when invoked on NSArrays. Instead of observing an array, observe the ordered to-many relationship for which the array is the collection of related objects.- Overrides:
addObserverForKeyPathOptionsContextin classNSObject
-
addObserverToObjectsAtIndexesForKeyPathOptionsContext
public void addObserverToObjectsAtIndexesForKeyPathOptionsContext(NSObject observer, NSIndexSet indexes, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)
Register or deregister as an observer of the values at a key path relative to each indexed element of the array. The options determine what is included in observer notifications and when they're sent, as described above, and the context is passed in observer notifications as described above. These are not merely convenience methods; invoking them is potentially much faster than repeatedly invoking NSObject(NSKeyValueObserverRegistration) methods. You should use -removeObserver:fromObjectsAtIndexes:forKeyPath:context: instead of -removeObserver:fromObjectsAtIndexes:forKeyPath: whenever possible for the same reason described in the NSObject(NSKeyValueObserverRegistration) comment.
-
arrayByAddingObject
public NSArray<_ObjectType> arrayByAddingObject(_ObjectType anObject)
-
arrayByAddingObjectsFromArray
public NSArray<_ObjectType> arrayByAddingObjectsFromArray(NSArray<_ObjectType> otherArray)
-
componentsJoinedByString
public java.lang.String componentsJoinedByString(java.lang.String separator)
-
containsObject
public boolean containsObject(_ObjectType anObject)
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
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:
countByEnumeratingWithStateObjectsCountin interfaceNSFastEnumeration
-
description
public java.lang.String description()
- Specified by:
descriptionin interfaceNSObject- Overrides:
descriptionin classNSObject
-
descriptionWithLocale
public java.lang.String descriptionWithLocale(java.lang.Object locale)
-
descriptionWithLocaleIndent
public java.lang.String descriptionWithLocaleIndent(java.lang.Object locale, long level)
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateObjectsAtIndexesOptionsUsingBlock
public void enumerateObjectsAtIndexesOptionsUsingBlock(NSIndexSet s, long opts, NSArray.Block_enumerateObjectsAtIndexesOptionsUsingBlock block)
-
enumerateObjectsUsingBlock
public void enumerateObjectsUsingBlock(NSArray.Block_enumerateObjectsUsingBlock block)
-
enumerateObjectsWithOptionsUsingBlock
public void enumerateObjectsWithOptionsUsingBlock(long opts, NSArray.Block_enumerateObjectsWithOptionsUsingBlock block)
-
filteredArrayUsingPredicate
public NSArray<_ObjectType> filteredArrayUsingPredicate(NSPredicate predicate)
evaluate a predicate against an array of objects and return a filtered array
-
firstObject
public _ObjectType firstObject()
-
firstObjectCommonWithArray
public _ObjectType firstObjectCommonWithArray(NSArray<_ObjectType> otherArray)
-
getObjects
public void getObjects(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects)
This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:range: instead.
-
getObjectsRange
public void getObjectsRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects, NSRange range)
-
indexOfObject
public long indexOfObject(_ObjectType anObject)
-
indexOfObjectInRange
public long indexOfObjectInRange(_ObjectType anObject, NSRange range)
-
indexOfObjectInSortedRangeOptionsUsingComparator
public long indexOfObjectInSortedRangeOptionsUsingComparator(_ObjectType obj, NSRange r, long opts, NSArray.Block_indexOfObjectInSortedRangeOptionsUsingComparator cmp)
binary search
-
indexOfObjectAtIndexesOptionsPassingTest
public long indexOfObjectAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSArray.Block_indexOfObjectAtIndexesOptionsPassingTest predicate)
-
indexOfObjectIdenticalTo
public long indexOfObjectIdenticalTo(_ObjectType anObject)
-
indexOfObjectIdenticalToInRange
public long indexOfObjectIdenticalToInRange(_ObjectType anObject, NSRange range)
-
indexOfObjectPassingTest
public long indexOfObjectPassingTest(NSArray.Block_indexOfObjectPassingTest predicate)
-
indexOfObjectWithOptionsPassingTest
public long indexOfObjectWithOptionsPassingTest(long opts, NSArray.Block_indexOfObjectWithOptionsPassingTest predicate)
-
indexesOfObjectsAtIndexesOptionsPassingTest
public NSIndexSet indexesOfObjectsAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSArray.Block_indexesOfObjectsAtIndexesOptionsPassingTest predicate)
-
indexesOfObjectsPassingTest
public NSIndexSet indexesOfObjectsPassingTest(NSArray.Block_indexesOfObjectsPassingTest predicate)
-
indexesOfObjectsWithOptionsPassingTest
public NSIndexSet indexesOfObjectsWithOptionsPassingTest(long opts, NSArray.Block_indexesOfObjectsWithOptionsPassingTest predicate)
-
initWithArray
public NSArray<?> initWithArray(NSArray<_ObjectType> array)
-
initWithArrayCopyItems
public NSArray<?> initWithArrayCopyItems(NSArray<_ObjectType> array, boolean flag)
-
initWithCoder
public NSArray<?> initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithContentsOfFile
public NSArray<_ObjectType> initWithContentsOfFile(java.lang.String path)
-
initWithContentsOfURL
public NSArray<_ObjectType> initWithContentsOfURL(NSURL url)
-
initWithObjects
public NSArray<?> initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
initWithObjectsCount
public NSArray<?> initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
isEqualToArray
public boolean isEqualToArray(NSArray<_ObjectType> otherArray)
-
lastObject
public _ObjectType lastObject()
-
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:
mutableCopyWithZonein interfaceNSMutableCopying
-
objectAtIndex
public _ObjectType objectAtIndex(long index)
-
objectAtIndexedSubscript
public _ObjectType objectAtIndexedSubscript(long idx)
-
objectEnumerator
public NSEnumerator<_ObjectType> objectEnumerator()
-
objectsAtIndexes
public NSArray<_ObjectType> objectsAtIndexes(NSIndexSet indexes)
-
pathsMatchingExtensions
public NSArray<java.lang.String> pathsMatchingExtensions(NSArray<java.lang.String> filterTypes)
-
removeObserverForKeyPath
public void removeObserverForKeyPath(NSObject observer, java.lang.String keyPath)
- Overrides:
removeObserverForKeyPathin classNSObject
-
removeObserverForKeyPathContext
public void removeObserverForKeyPathContext(NSObject observer, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)
- Overrides:
removeObserverForKeyPathContextin classNSObject
-
removeObserverFromObjectsAtIndexesForKeyPath
public void removeObserverFromObjectsAtIndexesForKeyPath(NSObject observer, NSIndexSet indexes, java.lang.String keyPath)
-
removeObserverFromObjectsAtIndexesForKeyPathContext
public void removeObserverFromObjectsAtIndexesForKeyPathContext(NSObject observer, NSIndexSet indexes, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)
-
reverseObjectEnumerator
public NSEnumerator<_ObjectType> reverseObjectEnumerator()
-
setValueForKey
public void setValueForKey(java.lang.Object value, java.lang.String key)Invoke -setValue:forKey: on each of the receiver's elements.- Overrides:
setValueForKeyin classNSObject
-
shuffledArray
public NSArray<_ObjectType> shuffledArray()
Returns a shuffled instance of this array using the systems underlying random source, as with [GKRandomSource sharedRandom]
-
shuffledArrayWithRandomSource
public NSArray<_ObjectType> shuffledArrayWithRandomSource(GKRandomSource randomSource)
Returns a shuffled instance of this array using the given random source.
-
sortedArrayHint
public NSData sortedArrayHint()
-
sortedArrayUsingComparator
public NSArray<_ObjectType> sortedArrayUsingComparator(NSArray.Block_sortedArrayUsingComparator cmptr)
-
sortedArrayUsingDescriptors
public NSArray<_ObjectType> sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
returns a new array by sorting the objects of the receiver
-
sortedArrayUsingFunctionContext
public NSArray<_ObjectType> sortedArrayUsingFunctionContext(NSArray.Function_sortedArrayUsingFunctionContext comparator, org.moe.natj.general.ptr.VoidPtr context)
-
sortedArrayUsingFunctionContextHint
public NSArray<_ObjectType> sortedArrayUsingFunctionContextHint(NSArray.Function_sortedArrayUsingFunctionContextHint comparator, org.moe.natj.general.ptr.VoidPtr context, NSData hint)
-
sortedArrayUsingSelector
public NSArray<_ObjectType> sortedArrayUsingSelector(org.moe.natj.objc.SEL comparator)
-
sortedArrayWithOptionsUsingComparator
public NSArray<_ObjectType> sortedArrayWithOptionsUsingComparator(long opts, NSArray.Block_sortedArrayWithOptionsUsingComparator cmptr)
-
subarrayWithRange
public NSArray<_ObjectType> subarrayWithRange(NSRange range)
-
_supportsSecureCoding
public boolean _supportsSecureCoding()
Description copied from interface:NSSecureCodingThis 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:
_supportsSecureCodingin interfaceNSSecureCoding
-
valueForKey
public java.lang.Object valueForKey(java.lang.String key)
Return an array containing the results of invoking -valueForKey: on each of the receiver's elements. The returned array will contain NSNull elements for each instance of -valueForKey: returning nil.- Overrides:
valueForKeyin classNSObject
-
writeToFileAtomically
public boolean writeToFileAtomically(java.lang.String path, boolean useAuxiliaryFile)
-
writeToURLAtomically
public boolean writeToURLAtomically(NSURL url, boolean atomically)
-
add
public boolean add(_ObjectType e)
- Specified by:
addin interfacejava.util.Collection<_ObjectType>- Specified by:
addin interfacejava.util.List<_ObjectType>
-
add
public void add(int index, _ObjectType element)- Specified by:
addin interfacejava.util.List<_ObjectType>
-
addAll
public boolean addAll(java.util.Collection<? extends _ObjectType> c)
- Specified by:
addAllin interfacejava.util.Collection<_ObjectType>- Specified by:
addAllin interfacejava.util.List<_ObjectType>
-
addAll
public boolean addAll(int index, java.util.Collection<? extends _ObjectType> c)- Specified by:
addAllin interfacejava.util.List<_ObjectType>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Collection<_ObjectType>- Specified by:
clearin interfacejava.util.List<_ObjectType>
-
contains
public boolean contains(java.lang.Object o)
- Specified by:
containsin interfacejava.util.Collection<_ObjectType>- Specified by:
containsin interfacejava.util.List<_ObjectType>
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
- Specified by:
containsAllin interfacejava.util.Collection<_ObjectType>- Specified by:
containsAllin interfacejava.util.List<_ObjectType>
-
get
public _ObjectType get(int index)
- Specified by:
getin interfacejava.util.List<_ObjectType>
-
indexOf
public int indexOf(java.lang.Object o)
- Specified by:
indexOfin interfacejava.util.List<_ObjectType>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Collection<_ObjectType>- Specified by:
isEmptyin interfacejava.util.List<_ObjectType>
-
iterator
public java.util.Iterator<_ObjectType> iterator()
- Specified by:
iteratorin interfacejava.util.Collection<_ObjectType>- Specified by:
iteratorin interfacejava.lang.Iterable<_ObjectType>- Specified by:
iteratorin interfacejava.util.List<_ObjectType>
-
lastIndexOf
public int lastIndexOf(java.lang.Object o)
- Specified by:
lastIndexOfin interfacejava.util.List<_ObjectType>
-
listIterator
public java.util.ListIterator<_ObjectType> listIterator()
- Specified by:
listIteratorin interfacejava.util.List<_ObjectType>
-
listIterator
public java.util.ListIterator<_ObjectType> listIterator(int index)
- Specified by:
listIteratorin interfacejava.util.List<_ObjectType>
-
remove
public boolean remove(java.lang.Object o)
- Specified by:
removein interfacejava.util.Collection<_ObjectType>- Specified by:
removein interfacejava.util.List<_ObjectType>
-
remove
public _ObjectType remove(int index)
- Specified by:
removein interfacejava.util.List<_ObjectType>
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
- Specified by:
removeAllin interfacejava.util.Collection<_ObjectType>- Specified by:
removeAllin interfacejava.util.List<_ObjectType>
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
- Specified by:
retainAllin interfacejava.util.Collection<_ObjectType>- Specified by:
retainAllin interfacejava.util.List<_ObjectType>
-
set
public _ObjectType set(int index, _ObjectType element)
- Specified by:
setin interfacejava.util.List<_ObjectType>
-
size
public int size()
- Specified by:
sizein interfacejava.util.Collection<_ObjectType>- Specified by:
sizein interfacejava.util.List<_ObjectType>
-
subList
public java.util.List<_ObjectType> subList(int fromIndex, int toIndex)
- Specified by:
subListin interfacejava.util.List<_ObjectType>
-
toArray
public java.lang.Object[] toArray()
- Specified by:
toArrayin interfacejava.util.Collection<_ObjectType>- Specified by:
toArrayin interfacejava.util.List<_ObjectType>
-
toArray
public java.lang.Object[] toArray(java.lang.Object[] a)
- Specified by:
toArrayin interfacejava.util.Collection<_ObjectType>- Specified by:
toArrayin interfacejava.util.List<_ObjectType>
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacejava.util.Collection<_ObjectType>- Specified by:
hashCodein interfacejava.util.List<_ObjectType>- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Specified by:
equalsin interfacejava.util.Collection<_ObjectType>- Specified by:
equalsin interfacejava.util.List<_ObjectType>- Overrides:
equalsin classorg.moe.natj.objc.ObjCObject
-
arrayWithContentsOfURLError
public static <_ObjectType> NSArray<_ObjectType> arrayWithContentsOfURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
Reads array stored in NSPropertyList format from the specified url.
-
initWithContentsOfURLError
public NSArray<_ObjectType> initWithContentsOfURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
Reads array stored in NSPropertyList format from the specified url.
-
writeToURLError
public boolean writeToURLError(NSURL url, org.moe.natj.general.ptr.Ptr<NSError> error)
Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly.
-
arrayByApplyingDifference
public NSArray<_ObjectType> arrayByApplyingDifference(NSOrderedCollectionDifference<_ObjectType> difference)
-
differenceFromArray
public NSOrderedCollectionDifference<_ObjectType> differenceFromArray(NSArray<_ObjectType> other)
Uses isEqual: to determine the difference between the parameter and the receiver
-
differenceFromArrayWithOptions
public NSOrderedCollectionDifference<_ObjectType> differenceFromArrayWithOptions(NSArray<_ObjectType> other, long options)
-
differenceFromArrayWithOptionsUsingEquivalenceTest
public NSOrderedCollectionDifference<_ObjectType> differenceFromArrayWithOptionsUsingEquivalenceTest(NSArray<_ObjectType> other, long options, NSArray.Block_differenceFromArrayWithOptionsUsingEquivalenceTest block)
-
-