public class NSIndexSet extends NSObject implements NSCopying, NSMutableCopying, NSSecureCoding
| Modifier and Type | Class and Description |
|---|---|
static interface |
NSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlock |
static interface |
NSIndexSet.Block_enumerateIndexesUsingBlock |
static interface |
NSIndexSet.Block_enumerateIndexesWithOptionsUsingBlock |
static interface |
NSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlock |
static interface |
NSIndexSet.Block_enumerateRangesUsingBlock |
static interface |
NSIndexSet.Block_enumerateRangesWithOptionsUsingBlock |
static interface |
NSIndexSet.Block_indexesInRangeOptionsPassingTest |
static interface |
NSIndexSet.Block_indexesPassingTest |
static interface |
NSIndexSet.Block_indexesWithOptionsPassingTest |
static interface |
NSIndexSet.Block_indexInRangeOptionsPassingTest |
static interface |
NSIndexSet.Block_indexPassingTest |
static interface |
NSIndexSet.Block_indexWithOptionsPassingTest |
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret| Modifier | Constructor and Description |
|---|---|
protected |
NSIndexSet(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() |
static NSIndexSet |
alloc() |
static NSIndexSet |
allocWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
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 |
containsIndex(long value) |
boolean |
containsIndexes(NSIndexSet indexSet) |
boolean |
containsIndexesInRange(NSRange range) |
java.lang.Object |
copyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
long |
count() |
long |
countOfIndexesInRange(NSRange range) |
static java.lang.String |
debugDescription_static() |
static java.lang.String |
description_static() |
void |
encodeWithCoder(NSCoder coder) |
void |
enumerateIndexesInRangeOptionsUsingBlock(NSRange range,
long opts,
NSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlock block) |
void |
enumerateIndexesUsingBlock(NSIndexSet.Block_enumerateIndexesUsingBlock block) |
void |
enumerateIndexesWithOptionsUsingBlock(long opts,
NSIndexSet.Block_enumerateIndexesWithOptionsUsingBlock block) |
void |
enumerateRangesInRangeOptionsUsingBlock(NSRange range,
long opts,
NSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlock block) |
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.
|
void |
enumerateRangesWithOptionsUsingBlock(long opts,
NSIndexSet.Block_enumerateRangesWithOptionsUsingBlock block) |
long |
firstIndex()
The following six methods will return NSNotFound if there is no index in the set satisfying the query.
|
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).
|
static long |
hash_static() |
NSIndexSet |
indexesInRangeOptionsPassingTest(NSRange range,
long opts,
NSIndexSet.Block_indexesInRangeOptionsPassingTest predicate) |
NSIndexSet |
indexesPassingTest(NSIndexSet.Block_indexesPassingTest predicate) |
NSIndexSet |
indexesWithOptionsPassingTest(long opts,
NSIndexSet.Block_indexesWithOptionsPassingTest predicate) |
long |
indexGreaterThanIndex(long value) |
long |
indexGreaterThanOrEqualToIndex(long value) |
long |
indexInRangeOptionsPassingTest(NSRange range,
long opts,
NSIndexSet.Block_indexInRangeOptionsPassingTest predicate) |
long |
indexLessThanIndex(long value) |
long |
indexLessThanOrEqualToIndex(long value) |
long |
indexPassingTest(NSIndexSet.Block_indexPassingTest predicate) |
static NSIndexSet |
indexSet() |
static NSIndexSet |
indexSetWithIndex(long value) |
static NSIndexSet |
indexSetWithIndexesInRange(NSRange range) |
long |
indexWithOptionsPassingTest(long opts,
NSIndexSet.Block_indexWithOptionsPassingTest predicate) |
NSIndexSet |
init() |
NSIndexSet |
initWithCoder(NSCoder coder)
NS_DESIGNATED_INITIALIZER
|
NSIndexSet |
initWithIndex(long value) |
NSIndexSet |
initWithIndexesInRange(NSRange range) |
NSIndexSet |
initWithIndexSet(NSIndexSet indexSet) |
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 |
intersectsIndexesInRange(NSRange range) |
boolean |
isEqualToIndexSet(NSIndexSet indexSet) |
static boolean |
isSubclassOfClass(org.moe.natj.objc.Class aClass) |
static NSSet<java.lang.String> |
keyPathsForValuesAffectingValueForKey(java.lang.String key) |
long |
lastIndex() |
java.lang.Object |
mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone) |
static NSIndexSet |
new_objc() |
static boolean |
resolveClassMethod(org.moe.natj.objc.SEL sel) |
static boolean |
resolveInstanceMethod(org.moe.natj.objc.SEL sel) |
static void |
setVersion_static(long aVersion) |
static org.moe.natj.objc.Class |
superclass_static() |
static boolean |
supportsSecureCoding() |
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, 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, willChangeValuesAtIndexesForKeypublic static boolean accessInstanceVariablesDirectly()
public static NSIndexSet alloc()
public static NSIndexSet 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 java.lang.String description_static()
public static long hash_static()
public static NSIndexSet indexSet()
public static NSIndexSet indexSetWithIndex(long value)
public static NSIndexSet indexSetWithIndexesInRange(NSRange range)
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 NSIndexSet new_objc()
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
public static void setVersion_static(long aVersion)
public static org.moe.natj.objc.Class superclass_static()
public static boolean supportsSecureCoding()
public static long version_static()
public boolean containsIndex(long value)
public boolean containsIndexes(NSIndexSet indexSet)
public boolean containsIndexesInRange(NSRange range)
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
copyWithZone in interface NSCopyingpublic long count()
public long countOfIndexesInRange(NSRange range)
public void encodeWithCoder(NSCoder coder)
encodeWithCoder in interface NSCodingpublic void enumerateIndexesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateIndexesInRangeOptionsUsingBlock block)
public void enumerateIndexesUsingBlock(NSIndexSet.Block_enumerateIndexesUsingBlock block)
public void enumerateIndexesWithOptionsUsingBlock(long opts,
NSIndexSet.Block_enumerateIndexesWithOptionsUsingBlock block)
public void enumerateRangesInRangeOptionsUsingBlock(NSRange range, long opts, NSIndexSet.Block_enumerateRangesInRangeOptionsUsingBlock block)
public void enumerateRangesUsingBlock(NSIndexSet.Block_enumerateRangesUsingBlock block)
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.
public void enumerateRangesWithOptionsUsingBlock(long opts,
NSIndexSet.Block_enumerateRangesWithOptionsUsingBlock block)
public long firstIndex()
public long getIndexesMaxCountInIndexRange(org.moe.natj.general.ptr.NUIntPtr indexBuffer,
long bufferSize,
NSRange range)
public long indexGreaterThanIndex(long value)
public long indexGreaterThanOrEqualToIndex(long value)
public long indexInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexInRangeOptionsPassingTest predicate)
public long indexLessThanIndex(long value)
public long indexLessThanOrEqualToIndex(long value)
public long indexPassingTest(NSIndexSet.Block_indexPassingTest predicate)
public long indexWithOptionsPassingTest(long opts,
NSIndexSet.Block_indexWithOptionsPassingTest predicate)
public NSIndexSet indexesInRangeOptionsPassingTest(NSRange range, long opts, NSIndexSet.Block_indexesInRangeOptionsPassingTest predicate)
public NSIndexSet indexesPassingTest(NSIndexSet.Block_indexesPassingTest predicate)
public NSIndexSet indexesWithOptionsPassingTest(long opts, NSIndexSet.Block_indexesWithOptionsPassingTest predicate)
public NSIndexSet init()
public NSIndexSet initWithCoder(NSCoder coder)
NSCodinginitWithCoder in interface NSCodingpublic NSIndexSet initWithIndex(long value)
public NSIndexSet initWithIndexSet(NSIndexSet indexSet)
public NSIndexSet initWithIndexesInRange(NSRange range)
public boolean intersectsIndexesInRange(NSRange range)
public boolean isEqualToIndexSet(NSIndexSet indexSet)
public long lastIndex()
public java.lang.Object mutableCopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
mutableCopyWithZone in interface NSMutableCopyingpublic boolean _supportsSecureCoding()
NSSecureCoding_supportsSecureCoding in interface NSSecureCoding