Class NSIndexSet

    • Constructor Detail

      • NSIndexSet

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSIndexSet 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()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • indexSetWithIndex

        public static NSIndexSet indexSetWithIndex​(long value)
      • indexSetWithIndexesInRange

        public static NSIndexSet indexSetWithIndexesInRange​(NSRange range)
      • 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)
      • 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 boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • containsIndex

        public boolean containsIndex​(long value)
      • containsIndexes

        public boolean containsIndexes​(@NotNull
                                       @NotNull NSIndexSet indexSet)
      • containsIndexesInRange

        public boolean containsIndexesInRange​(NSRange range)
      • 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()
      • countOfIndexesInRange

        public long countOfIndexesInRange​(NSRange range)
        API-Since: 2.0
      • enumerateRangesUsingBlock

        public void enumerateRangesUsingBlock​(@NotNull
                                              @NotNull NSIndexSet.Block_enumerateRangesUsingBlock block)
        The following three convenience methods allow you to enumerate the indexes in the receiver by ranges of contiguous indexes. The performance of these methods is not guaranteed to be any better than if they were implemented with enumerateIndexesInRange:options:usingBlock:. However, depending on the receiver's implementation, they may perform better than that. If the specified range for enumeration intersects a range of contiguous indexes in the receiver, then the block will be invoked with the intersection of those two ranges. API-Since: 5.0
      • firstIndex

        public long firstIndex()
        The following six methods will return NSNotFound if there is no index in the set satisfying the query.
      • getIndexesMaxCountInIndexRange

        public long getIndexesMaxCountInIndexRange​(@NotNull
                                                   @NotNull org.moe.natj.general.ptr.NUIntPtr indexBuffer,
                                                   long bufferSize,
                                                   @Nullable
                                                   @Nullable NSRange range)
        Fills up to bufferSize indexes in the specified range into the buffer and returns the number of indexes actually placed in the buffer; also modifies the optional range passed in by pointer to be "positioned" after the last index filled into the buffer.Example: if the index set contains the indexes 0, 2, 4, ..., 98, 100, for a buffer of size 10 and the range (20, 80) the buffer would contain 20, 22, ..., 38 and the range would be modified to (40, 60).
      • indexGreaterThanIndex

        public long indexGreaterThanIndex​(long value)
      • indexGreaterThanOrEqualToIndex

        public long indexGreaterThanOrEqualToIndex​(long value)
      • indexLessThanIndex

        public long indexLessThanIndex​(long value)
      • indexLessThanOrEqualToIndex

        public long indexLessThanOrEqualToIndex​(long value)
      • initWithIndex

        public NSIndexSet initWithIndex​(long value)
      • initWithIndexesInRange

        public NSIndexSet initWithIndexesInRange​(NSRange range)
      • intersectsIndexesInRange

        public boolean intersectsIndexesInRange​(NSRange range)
      • isEqualToIndexSet

        public boolean isEqualToIndexSet​(@NotNull
                                         @NotNull NSIndexSet indexSet)
      • lastIndex

        public long lastIndex()
      • mutableCopyWithZone

        @NotNull
        public @NotNull java.lang.Object mutableCopyWithZone​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • _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
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.