Package apple.foundation
Class NSOrderedSet<_ObjectType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSOrderedSet<_ObjectType>
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSFastEnumeration,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableOrderedSet
public class NSOrderedSet<_ObjectType> extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration
Immutable Ordered Set ***************
-
-
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 protectedNSOrderedSet(org.moe.natj.general.Pointer peer)
-
Method Summary
-
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 NSOrderedSet<?> 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()
-
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()
-
orderedSet
public static <_ObjectType> NSOrderedSet<?> orderedSet()
-
orderedSetWithArray
public static <_ObjectType> NSOrderedSet<?> orderedSetWithArray(NSArray<_ObjectType> array)
-
orderedSetWithArrayRangeCopyItems
public static <_ObjectType> NSOrderedSet<?> orderedSetWithArrayRangeCopyItems(NSArray<_ObjectType> array, NSRange range, boolean flag)
-
orderedSetWithObject
public static <_ObjectType> NSOrderedSet<?> orderedSetWithObject(_ObjectType object)
-
orderedSetWithObjects
public static <_ObjectType> NSOrderedSet<?> orderedSetWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
orderedSetWithObjectsCount
public static <_ObjectType> NSOrderedSet<?> orderedSetWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
orderedSetWithOrderedSet
public static <_ObjectType> NSOrderedSet<?> orderedSetWithOrderedSet(NSOrderedSet<_ObjectType> set)
-
orderedSetWithOrderedSetRangeCopyItems
public static <_ObjectType> NSOrderedSet<?> orderedSetWithOrderedSetRangeCopyItems(NSOrderedSet<_ObjectType> set, NSRange range, boolean flag)
-
orderedSetWithSet
public static <_ObjectType> NSOrderedSet<?> orderedSetWithSet(NSSet<_ObjectType> set)
-
orderedSetWithSetCopyItems
public static <_ObjectType> NSOrderedSet<?> orderedSetWithSetCopyItems(NSSet<_ObjectType> set, boolean flag)
-
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)
NSOrderedSets are not observable, so these methods raise exceptions when invoked on NSOrderedSets. Instead of observing an ordered set, observe the ordered to-many relationship for which the ordered set is the collection of related objects.- Overrides:
addObserverForKeyPathOptionsContextin classNSObject
-
array
public NSArray<_ObjectType> array()
These two methods return a facade object for the receiving ordered set, which acts like an immutable array or set (respectively). Note that while you cannot mutate the ordered set through these facades, mutations to the original ordered set will "show through" the facade and it will appear to change spontaneously, since a copy of the ordered set is not being made.
-
containsObject
public boolean containsObject(_ObjectType object)
-
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, NSOrderedSet.Block_enumerateObjectsAtIndexesOptionsUsingBlock block)
-
enumerateObjectsUsingBlock
public void enumerateObjectsUsingBlock(NSOrderedSet.Block_enumerateObjectsUsingBlock block)
-
enumerateObjectsWithOptionsUsingBlock
public void enumerateObjectsWithOptionsUsingBlock(long opts, NSOrderedSet.Block_enumerateObjectsWithOptionsUsingBlock block)
-
filteredOrderedSetUsingPredicate
public NSOrderedSet<_ObjectType> filteredOrderedSetUsingPredicate(NSPredicate p)
evaluate a predicate against an ordered set of objects and return a filtered ordered set
-
firstObject
public _ObjectType firstObject()
-
getObjectsRange
public void getObjectsRange(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects, NSRange range)
-
indexOfObject
public long indexOfObject(_ObjectType object)
-
indexOfObjectInSortedRangeOptionsUsingComparator
public long indexOfObjectInSortedRangeOptionsUsingComparator(_ObjectType object, NSRange range, long opts, NSOrderedSet.Block_indexOfObjectInSortedRangeOptionsUsingComparator cmp)
binary search
-
indexOfObjectAtIndexesOptionsPassingTest
public long indexOfObjectAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSOrderedSet.Block_indexOfObjectAtIndexesOptionsPassingTest predicate)
-
indexOfObjectPassingTest
public long indexOfObjectPassingTest(NSOrderedSet.Block_indexOfObjectPassingTest predicate)
-
indexOfObjectWithOptionsPassingTest
public long indexOfObjectWithOptionsPassingTest(long opts, NSOrderedSet.Block_indexOfObjectWithOptionsPassingTest predicate)
-
indexesOfObjectsAtIndexesOptionsPassingTest
public NSIndexSet indexesOfObjectsAtIndexesOptionsPassingTest(NSIndexSet s, long opts, NSOrderedSet.Block_indexesOfObjectsAtIndexesOptionsPassingTest predicate)
-
indexesOfObjectsPassingTest
public NSIndexSet indexesOfObjectsPassingTest(NSOrderedSet.Block_indexesOfObjectsPassingTest predicate)
-
indexesOfObjectsWithOptionsPassingTest
public NSIndexSet indexesOfObjectsWithOptionsPassingTest(long opts, NSOrderedSet.Block_indexesOfObjectsWithOptionsPassingTest predicate)
-
init
public NSOrderedSet<?> init()
-
initWithArray
public NSOrderedSet<?> initWithArray(NSArray<_ObjectType> array)
-
initWithArrayCopyItems
public NSOrderedSet<?> initWithArrayCopyItems(NSArray<_ObjectType> set, boolean flag)
-
initWithArrayRangeCopyItems
public NSOrderedSet<?> initWithArrayRangeCopyItems(NSArray<_ObjectType> set, NSRange range, boolean flag)
-
initWithCoder
public NSOrderedSet<?> initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithObject
public NSOrderedSet<?> initWithObject(_ObjectType object)
-
initWithObjects
public NSOrderedSet<?> initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
initWithObjectsCount
public NSOrderedSet<?> initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
initWithOrderedSet
public NSOrderedSet<?> initWithOrderedSet(NSOrderedSet<_ObjectType> set)
-
initWithOrderedSetCopyItems
public NSOrderedSet<?> initWithOrderedSetCopyItems(NSOrderedSet<_ObjectType> set, boolean flag)
-
initWithOrderedSetRangeCopyItems
public NSOrderedSet<?> initWithOrderedSetRangeCopyItems(NSOrderedSet<_ObjectType> set, NSRange range, boolean flag)
-
initWithSet
public NSOrderedSet<?> initWithSet(NSSet<_ObjectType> set)
-
initWithSetCopyItems
public NSOrderedSet<?> initWithSetCopyItems(NSSet<_ObjectType> set, boolean flag)
-
intersectsOrderedSet
public boolean intersectsOrderedSet(NSOrderedSet<_ObjectType> other)
-
intersectsSet
public boolean intersectsSet(NSSet<_ObjectType> set)
-
isEqualToOrderedSet
public boolean isEqualToOrderedSet(NSOrderedSet<_ObjectType> other)
-
isSubsetOfOrderedSet
public boolean isSubsetOfOrderedSet(NSOrderedSet<_ObjectType> other)
-
isSubsetOfSet
public boolean isSubsetOfSet(NSSet<_ObjectType> set)
-
lastObject
public _ObjectType lastObject()
-
mutableCopyWithZone
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
objectAtIndex
public _ObjectType objectAtIndex(long idx)
-
objectAtIndexedSubscript
public _ObjectType objectAtIndexedSubscript(long idx)
-
objectEnumerator
public NSEnumerator<_ObjectType> objectEnumerator()
-
objectsAtIndexes
public NSArray<_ObjectType> objectsAtIndexes(NSIndexSet indexes)
-
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
-
reverseObjectEnumerator
public NSEnumerator<_ObjectType> reverseObjectEnumerator()
-
reversedOrderedSet
public NSOrderedSet<_ObjectType> reversedOrderedSet()
-
set
public NSSet<_ObjectType> set()
-
setValueForKey
public void setValueForKey(java.lang.Object value, java.lang.String key)Invoke -setValue:forKey: on each of the receiver's members.- Overrides:
setValueForKeyin classNSObject
-
sortedArrayUsingComparator
public NSArray<_ObjectType> sortedArrayUsingComparator(NSOrderedSet.Block_sortedArrayUsingComparator cmptr)
-
sortedArrayUsingDescriptors
public NSArray<_ObjectType> sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
returns a new array by sorting the objects of the receiver
-
sortedArrayWithOptionsUsingComparator
public NSArray<_ObjectType> sortedArrayWithOptionsUsingComparator(long opts, NSOrderedSet.Block_sortedArrayWithOptionsUsingComparator cmptr)
-
_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 ordered set containing the results of invoking -valueForKey: on each of the receiver's members. The returned ordered set might not have the same number of members as the receiver. The returned ordered set will not contain any elements corresponding to instances of -valueForKey: returning nil, nor will it contain duplicates.- Overrides:
valueForKeyin classNSObject
-
differenceFromOrderedSet
public NSOrderedCollectionDifference<_ObjectType> differenceFromOrderedSet(NSOrderedSet<_ObjectType> other)
Uses isEqual: to determine the difference between the parameter and the receiver
-
differenceFromOrderedSetWithOptions
public NSOrderedCollectionDifference<_ObjectType> differenceFromOrderedSetWithOptions(NSOrderedSet<_ObjectType> other, long options)
-
differenceFromOrderedSetWithOptionsUsingEquivalenceTest
public NSOrderedCollectionDifference<_ObjectType> differenceFromOrderedSetWithOptionsUsingEquivalenceTest(NSOrderedSet<_ObjectType> other, long options, NSOrderedSet.Block_differenceFromOrderedSetWithOptionsUsingEquivalenceTest block)
-
orderedSetByApplyingDifference
public NSOrderedSet<_ObjectType> orderedSetByApplyingDifference(NSOrderedCollectionDifference<_ObjectType> difference)
-
-