Class NSOrderedSet<_ObjectType>

    • Constructor Detail

      • NSOrderedSet

        protected NSOrderedSet​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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:
        addObserverForKeyPathOptionsContext in class NSObject
      • 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:
        copyWithZone in interface NSCopying
      • 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:
        countByEnumeratingWithStateObjectsCount in interface NSFastEnumeration
      • descriptionWithLocale

        public java.lang.String descriptionWithLocale​(java.lang.Object locale)
      • descriptionWithLocaleIndent

        public java.lang.String descriptionWithLocaleIndent​(java.lang.Object locale,
                                                            long level)
      • filteredOrderedSetUsingPredicate

        public NSOrderedSet<_ObjectType> filteredOrderedSetUsingPredicate​(NSPredicate p)
        evaluate a predicate against an ordered set of objects and return a filtered ordered set
      • getObjectsRange

        public void getObjectsRange​(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects,
                                    NSRange range)
      • indexOfObject

        public long indexOfObject​(_ObjectType object)
      • initWithObjectsCount

        public NSOrderedSet<?> initWithObjectsCount​(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                    long cnt)
      • mutableCopyWithZone

        public java.lang.Object mutableCopyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • objectAtIndex

        public _ObjectType objectAtIndex​(long idx)
      • objectAtIndexedSubscript

        public _ObjectType objectAtIndexedSubscript​(long idx)
      • removeObserverForKeyPathContext

        public void removeObserverForKeyPathContext​(NSObject observer,
                                                    java.lang.String keyPath,
                                                    org.moe.natj.general.ptr.VoidPtr context)
        Overrides:
        removeObserverForKeyPathContext in class NSObject
      • setValueForKey

        public void setValueForKey​(java.lang.Object value,
                                   java.lang.String key)
        Invoke -setValue:forKey: on each of the receiver's members.
        Overrides:
        setValueForKey in class NSObject
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This 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:
        _supportsSecureCoding in interface NSSecureCoding
      • 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:
        valueForKey in class NSObject