Class NSOrderedSet<_ObjectType>

    • Constructor Detail

      • NSOrderedSet

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSOrderedSet<?> allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull 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

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • orderedSet

        public static <_ObjectType> NSOrderedSet<?> orderedSet()
      • orderedSetWithArray

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithArray​(@NotNull
                                                                        @NotNull NSArray<_ObjectType> array)
      • orderedSetWithArrayRangeCopyItems

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithArrayRangeCopyItems​(@NotNull
                                                                                      @NotNull NSArray<_ObjectType> array,
                                                                                      NSRange range,
                                                                                      boolean flag)
      • orderedSetWithObject

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithObject​(@NotNull
                                                                         _ObjectType object)
      • orderedSetWithObjects

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithObjects​(@NotNull
                                                                          _ObjectType firstObj,
                                                                          java.lang.Object... varargs)
      • orderedSetWithObjectsCount

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithObjectsCount​(@NotNull
                                                                               @NotNull org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                                               long cnt)
      • orderedSetWithOrderedSet

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithOrderedSet​(@NotNull
                                                                             @NotNull NSOrderedSet<_ObjectType> set)
      • orderedSetWithOrderedSetRangeCopyItems

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithOrderedSetRangeCopyItems​(@NotNull
                                                                                           @NotNull NSOrderedSet<_ObjectType> set,
                                                                                           NSRange range,
                                                                                           boolean flag)
      • orderedSetWithSet

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithSet​(@NotNull
                                                                      @NotNull NSSet<_ObjectType> set)
      • orderedSetWithSetCopyItems

        public static <_ObjectType> NSOrderedSet<?> orderedSetWithSetCopyItems​(@NotNull
                                                                               @NotNull 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​(@NotNull
                                                        @NotNull NSObject observer,
                                                        @NotNull
                                                        @NotNull java.lang.String keyPath,
                                                        long options,
                                                        @Nullable
                                                        @Nullable 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

        @NotNull
        public @NotNull 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​(@NotNull
                                      _ObjectType object)
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • count

        public long count()
      • countByEnumeratingWithStateObjectsCount

        public long countByEnumeratingWithStateObjectsCount​(@NotNull
                                                            @NotNull org.moe.natj.general.ptr.VoidPtr state,
                                                            @NotNull
                                                            @NotNull org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> buffer,
                                                            long len)
        Specified by:
        countByEnumeratingWithStateObjectsCount in interface NSFastEnumeration
      • descriptionWithLocale

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

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

        @NotNull
        public @NotNull NSOrderedSet<_ObjectType> filteredOrderedSetUsingPredicate​(@NotNull
                                                                                   @NotNull NSPredicate p)
        evaluate a predicate against an ordered set of objects and return a filtered ordered set API-Since: 5.0
      • firstObject

        @Nullable
        public _ObjectType firstObject()
      • getObjectsRange

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

        public long indexOfObject​(@NotNull
                                  _ObjectType object)
      • initWithObjects

        public NSOrderedSet<?> initWithObjects​(@NotNull
                                               _ObjectType firstObj,
                                               java.lang.Object... varargs)
      • initWithObjectsCount

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

        public boolean intersectsOrderedSet​(@NotNull
                                            @NotNull NSOrderedSet<_ObjectType> other)
      • intersectsSet

        public boolean intersectsSet​(@NotNull
                                     @NotNull NSSet<_ObjectType> set)
      • isSubsetOfOrderedSet

        public boolean isSubsetOfOrderedSet​(@NotNull
                                            @NotNull NSOrderedSet<_ObjectType> other)
      • isSubsetOfSet

        public boolean isSubsetOfSet​(@NotNull
                                     @NotNull NSSet<_ObjectType> set)
      • lastObject

        @Nullable
        public _ObjectType lastObject()
      • mutableCopyWithZone

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

        @NotNull
        public _ObjectType objectAtIndex​(long idx)
      • objectAtIndexedSubscript

        @NotNull
        public _ObjectType objectAtIndexedSubscript​(long idx)
        API-Since: 6.0
      • removeObserverForKeyPath

        public void removeObserverForKeyPath​(@NotNull
                                             @NotNull NSObject observer,
                                             @NotNull
                                             @NotNull java.lang.String keyPath)
        Overrides:
        removeObserverForKeyPath in class NSObject
      • removeObserverForKeyPathContext

        public void removeObserverForKeyPathContext​(@NotNull
                                                    @NotNull NSObject observer,
                                                    @NotNull
                                                    @NotNull java.lang.String keyPath,
                                                    @Nullable
                                                    @Nullable org.moe.natj.general.ptr.VoidPtr context)
        API-Since: 5.0
        Overrides:
        removeObserverForKeyPathContext in class NSObject
      • setValueForKey

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

        @NotNull
        public @NotNull NSArray<_ObjectType> sortedArrayUsingDescriptors​(@NotNull
                                                                         @NotNull NSArray<? extends NSSortDescriptor> sortDescriptors)
        returns a new array by sorting the objects of the receiver API-Since: 5.0
      • _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

        @NotNull
        public @NotNull java.lang.Object valueForKey​(@NotNull
                                                     @NotNull 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. API-Since: 5.0
        Overrides:
        valueForKey in class NSObject
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.