Package apple.uikit
Class NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType>
- java.lang.Object
-
- org.moe.natj.general.NativeObject
-
- org.moe.natj.objc.ObjCObject
-
- apple.NSObject
-
- apple.uikit.NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class apple.NSObject
NSObject.Function_instanceMethodForSelector_ret, NSObject.Function_methodForSelector_ret
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNSDiffableDataSourceSectionSnapshot(org.moe.natj.general.Pointer peer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanaccessInstanceVariablesDirectly()static NSDiffableDataSourceSectionSnapshot<?>alloc()static java.lang.ObjectallocWithZone(org.moe.natj.general.ptr.VoidPtr zone)voidappendItems(NSArray<_ItemIdentifierType> items)append items to RootvoidappendItemsIntoParentItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType parentItem)append items into parent (creating a new Parent+Child relationship if not present; appends to existing children if present)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()voidcollapseItems(NSArray<_ItemIdentifierType> items)will log if item is not foundbooleancontainsItem(_ItemIdentifierType item)java.lang.ObjectcopyWithZone(org.moe.natj.general.ptr.VoidPtr zone)static java.lang.StringdebugDescription_static()voiddeleteAllItems()voiddeleteItems(NSArray<_ItemIdentifierType> items)will also delete childrenstatic java.lang.Stringdescription_static()NSArray<_ItemIdentifierType>expandedItems()voidexpandItems(NSArray<_ItemIdentifierType> items)will log if item is not foundstatic longhash_static()longindexOfItem(_ItemIdentifierType item)NSDiffableDataSourceSectionSnapshot<?>init()creates an empty snapshotvoidinsertItemsAfterItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType afterIdentifier)Insert After: respect any destination item's children and inserts the new items after them at the same level as the destination item. +---------+ | 0 | +---------+ +-+-------+-+ | 0 | | 1 | +-+-------+-+ +---------+ | 1 | | 2 | +---------+ +-+-------+-+ | 2 | | INS | +-+-------+-+ +---------+ | 3 | | 3 | +---------+ +---------+ +--------------------------------+ | insertAfter(INS, after:0) | +--------------------------------+ +---------+ | 0 | +---------+ +-+-------+-+ | 0 | | 1 | +-+-------+-+ +---------+ | 1 | | 2 | +---------+ +-+-------+-+ | 2 | | 3 | +-+-------+-+ +-+-------+-+ | 3 | | INS | +---+-----+---+ +-+-------+-+ | 4 | | 4 | +---------+ +---------+ +--------------------------------+ | insertAfter(INS, after:2) | +--------------------------------+voidinsertItemsBeforeItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType beforeIdentifier)Insert Before will always match the level of the destination item._ItemIdentifierTypeinsertSnapshotAfterItem(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _ItemIdentifierType item)voidinsertSnapshotBeforeItem(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _ItemIdentifierType item)insert a subtree -- represented by a snapshot -- before/after a destination itemstatic 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)booleanisExpanded(_ItemIdentifierType item)these methods are all O(1)static booleanisSubclassOfClass(org.moe.natj.objc.Class aClass)booleanisVisible(_ItemIdentifierType item)NSArray<_ItemIdentifierType>items()static NSSet<java.lang.String>keyPathsForValuesAffectingValueForKey(java.lang.String key)longlevelOfItem(_ItemIdentifierType item)NSNotFound if not presentstatic java.lang.Objectnew_objc()_ItemIdentifierTypeparentOfChildItem(_ItemIdentifierType childItem)nil == root nodevoidreplaceChildrenOfParentItemWithSnapshot(_ItemIdentifierType parentItem, NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot)static booleanresolveClassMethod(org.moe.natj.objc.SEL sel)static booleanresolveInstanceMethod(org.moe.natj.objc.SEL sel)NSArray<_ItemIdentifierType>rootItems()static voidsetVersion_static(long aVersion)NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType>snapshotOfParentItem(_ItemIdentifierType parentItem)snapshot will not include parentItemNSDiffableDataSourceSectionSnapshot<_ItemIdentifierType>snapshotOfParentItemIncludingParentItem(_ItemIdentifierType parentItem, boolean includingParentItem)static org.moe.natj.objc.Classsuperclass_static()static longversion_static()NSArray<_ItemIdentifierType>visibleItems()java.lang.StringvisualDescription()debugging; displays hierarchy legend: * == visible + == expanded - == collapsed-
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 NSDiffableDataSourceSectionSnapshot<?> alloc()
-
allocWithZone
public static java.lang.Object allocWithZone(org.moe.natj.general.ptr.VoidPtr zone)
-
appendItems
public void appendItems(NSArray<_ItemIdentifierType> items)
append items to Root
-
appendItemsIntoParentItem
public void appendItemsIntoParentItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType parentItem)
append items into parent (creating a new Parent+Child relationship if not present; appends to existing children if present)
-
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()
-
collapseItems
public void collapseItems(NSArray<_ItemIdentifierType> items)
will log if item is not found
-
containsItem
public boolean containsItem(_ItemIdentifierType item)
-
copyWithZone
public java.lang.Object copyWithZone(org.moe.natj.general.ptr.VoidPtr zone)
- Specified by:
copyWithZonein interfaceNSCopying
-
debugDescription_static
public static java.lang.String debugDescription_static()
-
deleteAllItems
public void deleteAllItems()
-
deleteItems
public void deleteItems(NSArray<_ItemIdentifierType> items)
will also delete children
-
description_static
public static java.lang.String description_static()
-
expandItems
public void expandItems(NSArray<_ItemIdentifierType> items)
will log if item is not found
-
expandedItems
public NSArray<_ItemIdentifierType> expandedItems()
-
hash_static
public static long hash_static()
-
indexOfItem
public long indexOfItem(_ItemIdentifierType item)
-
init
public NSDiffableDataSourceSectionSnapshot<?> init()
creates an empty snapshot
-
insertItemsAfterItem
public void insertItemsAfterItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType afterIdentifier)
Insert After: respect any destination item's children and inserts the new items after them at the same level as the destination item. +---------+ | 0 | +---------+ +-+-------+-+ | 0 | | 1 | +-+-------+-+ +---------+ | 1 | | 2 | +---------+ +-+-------+-+ | 2 | | INS | +-+-------+-+ +---------+ | 3 | | 3 | +---------+ +---------+ +--------------------------------+ | insertAfter(INS, after:0) | +--------------------------------+ +---------+ | 0 | +---------+ +-+-------+-+ | 0 | | 1 | +-+-------+-+ +---------+ | 1 | | 2 | +---------+ +-+-------+-+ | 2 | | 3 | +-+-------+-+ +-+-------+-+ | 3 | | INS | +---+-----+---+ +-+-------+-+ | 4 | | 4 | +---------+ +---------+ +--------------------------------+ | insertAfter(INS, after:2) | +--------------------------------+
-
insertItemsBeforeItem
public void insertItemsBeforeItem(NSArray<_ItemIdentifierType> items, _ItemIdentifierType beforeIdentifier)
Insert Before will always match the level of the destination item. Examples: +---------+ | 0 | +---------+ +-+-------+-+ | 0 | | INS | +-+-------+-+ +---------+ | 1 | | 1 | +---------+ +---------+ | 2 | | 2 | +-+-------+-+ +-+-------+-+ | 3 | | 3 | +---------+ +---------+ +--------------------------------+ | insertBefore(1) | +--------------------------------+ +---------+ | INS | +---------+ +---------+ | 0 | | 0 | +-+-------+-+ +-+-------+-+ | 1 | | 1 | +---------+ +---------+ | 2 | | 2 | +-+-------+-+ +-+-------+-+ | 3 | | 3 | +---------+ +---------+ +--------------------------------+ | insertBefore(0) | +--------------------------------+
-
insertSnapshotAfterItem
public _ItemIdentifierType insertSnapshotAfterItem(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _ItemIdentifierType item)
-
insertSnapshotBeforeItem
public void insertSnapshotBeforeItem(NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot, _ItemIdentifierType item)
insert a subtree -- represented by a snapshot -- before/after a destination item
-
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)
-
isExpanded
public boolean isExpanded(_ItemIdentifierType item)
these methods are all O(1)
-
isSubclassOfClass
public static boolean isSubclassOfClass(org.moe.natj.objc.Class aClass)
-
isVisible
public boolean isVisible(_ItemIdentifierType item)
-
items
public NSArray<_ItemIdentifierType> items()
-
keyPathsForValuesAffectingValueForKey
public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey(java.lang.String key)
-
levelOfItem
public long levelOfItem(_ItemIdentifierType item)
NSNotFound if not present
-
new_objc
public static java.lang.Object new_objc()
-
parentOfChildItem
public _ItemIdentifierType parentOfChildItem(_ItemIdentifierType childItem)
nil == root node
-
replaceChildrenOfParentItemWithSnapshot
public void replaceChildrenOfParentItemWithSnapshot(_ItemIdentifierType parentItem, NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshot)
-
resolveClassMethod
public static boolean resolveClassMethod(org.moe.natj.objc.SEL sel)
-
resolveInstanceMethod
public static boolean resolveInstanceMethod(org.moe.natj.objc.SEL sel)
-
rootItems
public NSArray<_ItemIdentifierType> rootItems()
-
setVersion_static
public static void setVersion_static(long aVersion)
-
snapshotOfParentItem
public NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshotOfParentItem(_ItemIdentifierType parentItem)
snapshot will not include parentItem
-
snapshotOfParentItemIncludingParentItem
public NSDiffableDataSourceSectionSnapshot<_ItemIdentifierType> snapshotOfParentItemIncludingParentItem(_ItemIdentifierType parentItem, boolean includingParentItem)
-
superclass_static
public static org.moe.natj.objc.Class superclass_static()
-
version_static
public static long version_static()
-
visibleItems
public NSArray<_ItemIdentifierType> visibleItems()
-
visualDescription
public java.lang.String visualDescription()
debugging; displays hierarchy legend: * == visible + == expanded - == collapsed
-
-