Package apple.foundation
Class NSSet<_ObjectType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSSet<_ObjectType>
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSFastEnumeration,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableSet
public class NSSet<_ObjectType> extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration
Immutable Set ***************
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSSet.Block_enumerateObjectsUsingBlockstatic interfaceNSSet.Block_enumerateObjectsWithOptionsUsingBlockstatic interfaceNSSet.Block_objectsPassingTeststatic interfaceNSSet.Block_objectsWithOptionsPassingTest-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSSet(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()voidaddObserverForKeyPathOptionsContext(NSObject observer, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)NSSets are not observable, so these methods raise exceptions when invoked on NSSets.NSArray<_ObjectType>allObjects()static NSSet<?>alloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)_ObjectTypeanyObject()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()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)voidencodeWithCoder(NSCoder coder)voidenumerateObjectsUsingBlock(NSSet.Block_enumerateObjectsUsingBlock block)voidenumerateObjectsWithOptionsUsingBlock(long opts, NSSet.Block_enumerateObjectsWithOptionsUsingBlock block)NSSet<_ObjectType>filteredSetUsingPredicate(NSPredicate predicate)evaluate a predicate against a set of objects and return a filtered setstatic longhash_static()NSSet<?>init()NSSet<?>initWithArray(NSArray<_ObjectType> array)NSSet<?>initWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERNSSet<?>initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)NSSet<?>initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)NSSet<?>initWithSet(NSSet<_ObjectType> set)NSSet<?>initWithSetCopyItems(NSSet<_ObjectType> set, boolean flag)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)booleanintersectsSet(NSSet<_ObjectType> otherSet)booleanisEqualToSet(NSSet<_ObjectType> otherSet)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisSubsetOfSet(NSSet<_ObjectType> otherSet)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)voidmakeObjectsPerformSelector(org.moe.natj.objc.SEL aSelector)voidmakeObjectsPerformSelectorWithObject(org.moe.natj.objc.SEL aSelector, java.lang.Object argument)_ObjectTypemember(_ObjectType object)java.lang.ObjectmutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.Objectnew_objc()NSEnumerator<_ObjectType>objectEnumerator()NSSet<_ObjectType>objectsPassingTest(NSSet.Block_objectsPassingTest predicate)NSSet<_ObjectType>objectsWithOptionsPassingTest(long opts, NSSet.Block_objectsWithOptionsPassingTest predicate)voidremoveObserverForKeyPath(NSObject observer, java.lang.String keyPath)voidremoveObserverForKeyPathContext(NSObject observer, 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)static <_ObjectType>
NSSet<?>set()NSSet<_ObjectType>setByAddingObject(_ObjectType anObject)NSSet<_ObjectType>setByAddingObjectsFromArray(NSArray<_ObjectType> other)NSSet<_ObjectType>setByAddingObjectsFromSet(NSSet<_ObjectType> other)voidsetValueForKey(java.lang.Object value, java.lang.String key)Invoke -setValue:forKey: on each of the receiver's members.static voidsetVersion_static(long aVersion)static <_ObjectType>
NSSet<?>setWithArray(NSArray<_ObjectType> array)static <_ObjectType>
NSSet<?>setWithObject(_ObjectType object)static <_ObjectType>
NSSet<?>setWithObjects(_ObjectType firstObj, java.lang.Object... varargs)static <_ObjectType>
NSSet<?>setWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)static <_ObjectType>
NSSet<?>setWithSet(NSSet<_ObjectType> set)NSArray<_ObjectType>sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)returns a new array by sorting the objects of the receiverstatic org.moe.natj.objc.Classsuperclass_static()static <_ObjectType>
booleansupportsSecureCoding()java.lang.ObjectvalueForKey(java.lang.String key)Return a set containing the results of invoking -valueForKey: on each of the receiver's members.static longversion_static()-
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 NSSet<?> 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()
-
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)
-
setWithObject
public static <_ObjectType> NSSet<?> setWithObject(_ObjectType object)
-
setWithObjects
public static <_ObjectType> NSSet<?> setWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
setWithObjectsCount
public static <_ObjectType> NSSet<?> setWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
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)
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:
addObserverForKeyPathOptionsContextin classNSObject
-
allObjects
public NSArray<_ObjectType> allObjects()
-
anyObject
public _ObjectType anyObject()
-
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)
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateObjectsUsingBlock
public void enumerateObjectsUsingBlock(NSSet.Block_enumerateObjectsUsingBlock block)
-
enumerateObjectsWithOptionsUsingBlock
public void enumerateObjectsWithOptionsUsingBlock(long opts, NSSet.Block_enumerateObjectsWithOptionsUsingBlock block)
-
filteredSetUsingPredicate
public NSSet<_ObjectType> filteredSetUsingPredicate(NSPredicate predicate)
evaluate a predicate against a set of objects and return a filtered set
-
initWithArray
public NSSet<?> initWithArray(NSArray<_ObjectType> array)
-
initWithCoder
public NSSet<?> initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithObjects
public NSSet<?> initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
-
initWithObjectsCount
public NSSet<?> initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
-
initWithSet
public NSSet<?> initWithSet(NSSet<_ObjectType> set)
-
initWithSetCopyItems
public NSSet<?> initWithSetCopyItems(NSSet<_ObjectType> set, boolean flag)
-
intersectsSet
public boolean intersectsSet(NSSet<_ObjectType> otherSet)
-
isEqualToSet
public boolean isEqualToSet(NSSet<_ObjectType> otherSet)
-
isSubsetOfSet
public boolean isSubsetOfSet(NSSet<_ObjectType> otherSet)
-
makeObjectsPerformSelector
public void makeObjectsPerformSelector(org.moe.natj.objc.SEL aSelector)
-
makeObjectsPerformSelectorWithObject
public void makeObjectsPerformSelectorWithObject(org.moe.natj.objc.SEL aSelector, java.lang.Object argument)
-
member
public _ObjectType member(_ObjectType object)
-
mutableCopyWithZone
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
objectEnumerator
public NSEnumerator<_ObjectType> objectEnumerator()
-
objectsPassingTest
public NSSet<_ObjectType> objectsPassingTest(NSSet.Block_objectsPassingTest predicate)
-
objectsWithOptionsPassingTest
public NSSet<_ObjectType> objectsWithOptionsPassingTest(long opts, NSSet.Block_objectsWithOptionsPassingTest predicate)
-
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
-
setByAddingObject
public NSSet<_ObjectType> setByAddingObject(_ObjectType anObject)
-
setByAddingObjectsFromArray
public NSSet<_ObjectType> setByAddingObjectsFromArray(NSArray<_ObjectType> other)
-
setByAddingObjectsFromSet
public NSSet<_ObjectType> setByAddingObjectsFromSet(NSSet<_ObjectType> other)
-
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
-
sortedArrayUsingDescriptors
public NSArray<_ObjectType> sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
returns a new array by sorting the objects of the receiver
-
_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 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:
valueForKeyin classNSObject
-
-