public class NSSet<_ObjectType> extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding, NSFastEnumeration
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSSet.Block_enumerateObjectsUsingBlock |
static interface |
NSSet.Block_enumerateObjectsWithOptionsUsingBlock |
static interface |
NSSet.Block_objectsPassingTest |
static interface |
NSSet.Block_objectsWithOptionsPassingTest |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSSet(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() |
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.
|
NSArray<_ObjectType> |
allObjects() |
static NSSet<?> |
alloc() |
static NSSet<?> |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
_ObjectType |
anyObject() |
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() |
boolean |
containsObject(_ObjectType anObject) |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
count() |
long |
countByEnumeratingWithStateObjectsCount(org.moe.natj.general.ptr.VoidPtr state,
org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
long len) |
static java.lang.String |
debugDescription_static() |
java.lang.String |
description() |
java.lang.String |
descriptionWithLocale(java.lang.Object locale) |
void |
encodeWithCoder(NSCoder coder) |
void |
enumerateObjectsUsingBlock(NSSet.Block_enumerateObjectsUsingBlock block) |
void |
enumerateObjectsWithOptionsUsingBlock(long opts,
NSSet.Block_enumerateObjectsWithOptionsUsingBlock block) |
NSSet<_ObjectType> |
filteredSetUsingPredicate(NSPredicate predicate)
evaluate a predicate against a set of objects and return a filtered set
|
static long |
hash_static() |
NSSet<?> |
init() |
NSSet<?> |
initWithArray(NSArray<_ObjectType> array) |
NSSet<?> |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSSet<?> |
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_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) |
boolean |
intersectsSet(NSSet<_ObjectType> otherSet) |
boolean |
isEqualToSet(NSSet<_ObjectType> otherSet) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
boolean |
isSubsetOfSet(NSSet<_ObjectType> otherSet) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
void |
makeObjectsPerformSelector(org.moe.natj.objc.SEL aSelector) |
void |
makeObjectsPerformSelectorWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object argument) |
_ObjectType |
member(_ObjectType object) |
java.lang.Object |
mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static NSSet<?> |
new_objc() |
NSEnumerator<_ObjectType> |
objectEnumerator() |
NSSet<_ObjectType> |
objectsPassingTest(NSSet.Block_objectsPassingTest predicate) |
NSSet<_ObjectType> |
objectsWithOptionsPassingTest(long opts,
NSSet.Block_objectsWithOptionsPassingTest predicate) |
void |
removeObserverForKeyPath(NSObject observer,
java.lang.String keyPath) |
void |
removeObserverForKeyPathContext(NSObject observer,
java.lang.String keyPath,
org.moe.natj.general.ptr.VoidPtr context) |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static <_ObjectType> |
set() |
NSSet<_ObjectType> |
setByAddingObject(_ObjectType anObject) |
NSSet<_ObjectType> |
setByAddingObjectsFromArray(NSArray<_ObjectType> other) |
NSSet<_ObjectType> |
setByAddingObjectsFromSet(NSSet<_ObjectType> other) |
void |
setValueForKey(java.lang.Object value,
java.lang.String key)
Invoke -setValue:forKey: on each of the receiver's members.
|
static void |
setVersion_static(long aVersion) |
static <_ObjectType> |
setWithArray(NSArray<_ObjectType> array) |
static <_ObjectType> |
setWithObject(_ObjectType object) |
static <_ObjectType> |
setWithObjects(_ObjectType firstObj,
java.lang.Object... varargs) |
static <_ObjectType> |
setWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
long cnt) |
static <_ObjectType> |
setWithSet(NSSet<_ObjectType> set) |
NSArray<_ObjectType> |
sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
returns a new array by sorting the objects of the receiver
|
static org.moe.natj.objc.Class |
superclass_static() |
static <_ObjectType> |
supportsSecureCoding() |
java.lang.Object |
valueForKey(java.lang.String key)
Return a set containing the results of invoking -valueForKey: on each of the receiver's members.
|
static long |
version_static() |
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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSSet<?> alloc()
public static NSSet<?> allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
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 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 NSSet<?> new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static <_ObjectType> NSSet<?> set()
public static void setVersion_static(long aVersion)
public static <_ObjectType> NSSet<?> setWithObject(_ObjectType object)
public static <_ObjectType> NSSet<?> setWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
public static <_ObjectType> NSSet<?> setWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
public static org.moe.natj.objc.Class superclass_static()
public static <_ObjectType> boolean supportsSecureCoding()
public static long version_static()
public void addObserverForKeyPathOptionsContext(NSObject observer, java.lang.String keyPath, long options, org.moe.natj.general.ptr.VoidPtr context)
addObserverForKeyPathOptionsContext in class NSObjectpublic NSArray<_ObjectType> allObjects()
public _ObjectType anyObject()
public boolean containsObject(_ObjectType anObject)
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long count()
public long countByEnumeratingWithStateObjectsCount(org.moe.natj.general.ptr.VoidPtr state,
org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
long len)
countByEnumeratingWithStateObjectsCount in interface NSFastEnumerationpublic java.lang.String description()
description in interface NSObjectdescription in class NSObjectpublic java.lang.String descriptionWithLocale(java.lang.Object locale)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void enumerateObjectsUsingBlock(NSSet.Block_enumerateObjectsUsingBlock block)
public void enumerateObjectsWithOptionsUsingBlock(long opts,
NSSet.Block_enumerateObjectsWithOptionsUsingBlock block)
public NSSet<_ObjectType> filteredSetUsingPredicate(NSPredicate predicate)
public NSSet<?> initWithArray(NSArray<_ObjectType> array)
public NSSet<?> initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSSet<?> initWithObjects(_ObjectType firstObj, java.lang.Object... varargs)
public NSSet<?> initWithObjectsCount(org.moe.natj.general.ptr.Ptr<_ObjectType> objects, long cnt)
public NSSet<?> initWithSet(NSSet<_ObjectType> set)
public NSSet<?> initWithSetCopyItems(NSSet<_ObjectType> set, boolean flag)
public boolean intersectsSet(NSSet<_ObjectType> otherSet)
public boolean isEqualToSet(NSSet<_ObjectType> otherSet)
public boolean isSubsetOfSet(NSSet<_ObjectType> otherSet)
public void makeObjectsPerformSelector(org.moe.natj.objc.SEL aSelector)
public void makeObjectsPerformSelectorWithObject(org.moe.natj.objc.SEL aSelector,
java.lang.Object argument)
public _ObjectType member(_ObjectType object)
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
mutableCopyWithZone in interface NSMutableCopyingpublic NSEnumerator<_ObjectType> objectEnumerator()
public NSSet<_ObjectType> objectsPassingTest(NSSet.Block_objectsPassingTest predicate)
public NSSet<_ObjectType> objectsWithOptionsPassingTest(long opts, NSSet.Block_objectsWithOptionsPassingTest predicate)
public void removeObserverForKeyPath(NSObject observer, java.lang.String keyPath)
removeObserverForKeyPath in class NSObjectpublic void removeObserverForKeyPathContext(NSObject observer, java.lang.String keyPath, org.moe.natj.general.ptr.VoidPtr context)
removeObserverForKeyPathContext in class NSObjectpublic NSSet<_ObjectType> setByAddingObject(_ObjectType anObject)
public NSSet<_ObjectType> setByAddingObjectsFromArray(NSArray<_ObjectType> other)
public NSSet<_ObjectType> setByAddingObjectsFromSet(NSSet<_ObjectType> other)
public void setValueForKey(java.lang.Object value,
java.lang.String key)
setValueForKey in class NSObjectpublic NSArray<_ObjectType> sortedArrayUsingDescriptors(NSArray<? extends NSSortDescriptor> sortDescriptors)
public boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCodingpublic java.lang.Object valueForKey(java.lang.String key)
valueForKey in class NSObject