Package apple.foundation
Class NSIndexSet
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.foundation.NSIndexSet
-
- All Implemented Interfaces:
NSCoding,NSCopying,NSMutableCopying,NSSecureCoding,NSObject
- Direct Known Subclasses:
NSMutableIndexSet
public class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceNSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlockstatic interfaceNSIndexSet.Block_enumerateIndexesUsingBlockstatic interfaceNSIndexSet.Block_enumerateIndexesWithOptionsUsingBlockstatic interfaceNSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlockstatic interfaceNSIndexSet.Block_enumerateRangesUsingBlockstatic interfaceNSIndexSet.Block_enumerateRangesWithOptionsUsingBlockstatic interfaceNSIndexSet.Block_indexesInRangeOptionsPassingTeststatic interfaceNSIndexSet.Block_indexesPassingTeststatic interfaceNSIndexSet.Block_indexesWithOptionsPassingTeststatic interfaceNSIndexSet.Block_indexInRangeOptionsPassingTeststatic interfaceNSIndexSet.Block_indexPassingTeststatic interfaceNSIndexSet.Block_indexWithOptionsPassingTest-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSIndexSet(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()static NSIndexSetalloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)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()booleancontainsIndex(long value)booleancontainsIndexes(NSIndexSet indexSet)booleancontainsIndexesInRange(NSRange range)java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)longcount()longcountOfIndexesInRange(NSRange range)static java.lang.StringdebugDescription_static()static java.lang.Stringdescription_static()voidencodeWithCoder(NSCoder coder)voidenumerateIndexesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlock block)voidenumerateIndexesUsingBlock(NSIndexSet.Block_enumerateIndexesUsingBlock block)voidenumerateIndexesWithOptionsUsingBlock(long opts, NSIndexSet.Block_enumerateIndexesWithOptionsUsingBlock block)voidenumerateRangesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlock block)voidenumerateRangesUsingBlock(NSIndexSet.Block_enumerateRangesUsingBlock block)The following three convenience methods allow you to enumerate the indexes in the receiver by ranges of contiguous indexes.voidenumerateRangesWithOptionsUsingBlock(long opts, NSIndexSet.Block_enumerateRangesWithOptionsUsingBlock block)longfirstIndex()The following six methods will return NSNotFound if there is no index in the set satisfying the query.longgetIndexesMaxCountInIndexRange(org.moe.natj.general.ptr.NUIntPtr indexBuffer, long bufferSize, 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).static longhash_static()NSIndexSetindexesInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexesInRangeOptionsPassingTest predicate)NSIndexSetindexesPassingTest(NSIndexSet.Block_indexesPassingTest predicate)NSIndexSetindexesWithOptionsPassingTest(long opts, NSIndexSet.Block_indexesWithOptionsPassingTest predicate)longindexGreaterThanIndex(long value)longindexGreaterThanOrEqualToIndex(long value)longindexInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexInRangeOptionsPassingTest predicate)longindexLessThanIndex(long value)longindexLessThanOrEqualToIndex(long value)longindexPassingTest(NSIndexSet.Block_indexPassingTest predicate)static NSIndexSetindexSet()static NSIndexSetindexSetWithIndex(long value)static NSIndexSetindexSetWithIndexesInRange(NSRange range)longindexWithOptionsPassingTest(long opts, NSIndexSet.Block_indexWithOptionsPassingTest predicate)NSIndexSetinit()NSIndexSetinitWithCoder(NSCoder coder)NS_DESIGNATED_INITIALIZERNSIndexSetinitWithIndex(long value)NSIndexSetinitWithIndexesInRange(NSRange range)NSIndexSetinitWithIndexSet(NSIndexSet indexSet)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)booleanintersectsIndexesInRange(NSRange range)booleanisEqualToIndexSet(NSIndexSet indexSet)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlastIndex()java.lang.ObjectmutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.Objectnew_objc()static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)static voidsetVersion_static(long aVersion)static org.moe.natj.objc.Classsuperclass_static()static booleansupportsSecureCoding()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, addObserverForKeyPathOptionsContext, attemptRecoveryFromErrorOptionIndex, attemptRecoveryFromErrorOptionIndexDelegateDidRecoverSelectorContextInfo, autoContentAccessingProxy, awakeAfterUsingCoder, awakeFromNib, class_objc, classForCoder, classForKeyedArchiver, copy, dealloc, debugDescription, description, 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, removeObserverForKeyPath, removeObserverForKeyPathContext, 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, setValueForKey, setValueForKeyPath, setValueForUndefinedKey, setValuesForKeysWithDictionary, shouldGroupAccessibilityChildren, superclass, validateValueForKeyError, validateValueForKeyPathError, valueForKey, valueForKeyPath, valueForUndefinedKey, willChangeValueForKey, willChangeValueForKeyWithSetMutationUsingObjects, willChangeValuesAtIndexesForKey
-
-
-
-
Method Detail
-
accessInstanceVariablesDirectly
public static boolean accessInstanceVariablesDirectly()
-
alloc
public static NSIndexSet 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()
-
description_static
public static java.lang.String description_static()
-
hash_static
public static long hash_static()
-
indexSet
public static NSIndexSet indexSet()
-
indexSetWithIndex
public static NSIndexSet indexSetWithIndex(long value)
-
indexSetWithIndexesInRange
public static NSIndexSet indexSetWithIndexesInRange(NSRange range)
-
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)
-
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(NSIndexSet indexSet)
-
containsIndexesInRange
public boolean containsIndexesInRange(NSRange range)
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
count
public long count()
-
countOfIndexesInRange
public long countOfIndexesInRange(NSRange range)
-
encodeWithCoder
public void encodeWithCoder(NSCoder coder)
- Specified by:
encodeWithCoderin interfaceNSCoding
-
enumerateIndexesInRangeOptionsUsingBlock
public void enumerateIndexesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlock block)
-
enumerateIndexesUsingBlock
public void enumerateIndexesUsingBlock(NSIndexSet.Block_enumerateIndexesUsingBlock block)
-
enumerateIndexesWithOptionsUsingBlock
public void enumerateIndexesWithOptionsUsingBlock(long opts, NSIndexSet.Block_enumerateIndexesWithOptionsUsingBlock block)
-
enumerateRangesInRangeOptionsUsingBlock
public void enumerateRangesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlock block)
-
enumerateRangesUsingBlock
public void enumerateRangesUsingBlock(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.
-
enumerateRangesWithOptionsUsingBlock
public void enumerateRangesWithOptionsUsingBlock(long opts, NSIndexSet.Block_enumerateRangesWithOptionsUsingBlock block)
-
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(org.moe.natj.general.ptr.NUIntPtr indexBuffer, long bufferSize, 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)
-
indexInRangeOptionsPassingTest
public long indexInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexInRangeOptionsPassingTest predicate)
-
indexLessThanIndex
public long indexLessThanIndex(long value)
-
indexLessThanOrEqualToIndex
public long indexLessThanOrEqualToIndex(long value)
-
indexPassingTest
public long indexPassingTest(NSIndexSet.Block_indexPassingTest predicate)
-
indexWithOptionsPassingTest
public long indexWithOptionsPassingTest(long opts, NSIndexSet.Block_indexWithOptionsPassingTest predicate)
-
indexesInRangeOptionsPassingTest
public NSIndexSet indexesInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexesInRangeOptionsPassingTest predicate)
-
indexesPassingTest
public NSIndexSet indexesPassingTest(NSIndexSet.Block_indexesPassingTest predicate)
-
indexesWithOptionsPassingTest
public NSIndexSet indexesWithOptionsPassingTest(long opts, NSIndexSet.Block_indexesWithOptionsPassingTest predicate)
-
init
public NSIndexSet init()
-
initWithCoder
public NSIndexSet initWithCoder(NSCoder coder)
Description copied from interface:NSCodingNS_DESIGNATED_INITIALIZER- Specified by:
initWithCoderin interfaceNSCoding
-
initWithIndex
public NSIndexSet initWithIndex(long value)
-
initWithIndexSet
public NSIndexSet initWithIndexSet(NSIndexSet indexSet)
-
initWithIndexesInRange
public NSIndexSet initWithIndexesInRange(NSRange range)
-
intersectsIndexesInRange
public boolean intersectsIndexesInRange(NSRange range)
-
isEqualToIndexSet
public boolean isEqualToIndexSet(NSIndexSet indexSet)
-
lastIndex
public long lastIndex()
-
mutableCopyWithZone
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
mutableCopyWithZonein interfaceNSMutableCopying
-
_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
-
-