Class NSDictionary<_KeyType,​_ObjectType>

    • Constructor Detail

      • NSDictionary

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • dictionary

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionary()
      • dictionaryWithContentsOfFile

        public static <_KeyType,​_ObjectType> NSDictionary<_KeyType,​_ObjectType> dictionaryWithContentsOfFile​(java.lang.String path)
        These methods are deprecated, and will be marked with API_DEPRECATED in a subsequent release. Use the variants that use errors instead.
      • dictionaryWithContentsOfURL

        public static <_KeyType,​_ObjectType> NSDictionary<_KeyType,​_ObjectType> dictionaryWithContentsOfURL​(NSURL url)
      • dictionaryWithDictionary

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithDictionary​(NSDictionary<_KeyType,​_ObjectType> dict)
      • dictionaryWithObjectForKey

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectForKey​(_ObjectType object,
                                                                                                      java.lang.Object key)
      • dictionaryWithObjectsForKeys

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectsForKeys​(NSArray<_ObjectType> objects,
                                                                                                        NSArray<?> keys)
      • dictionaryWithObjectsForKeysCount

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectsForKeysCount​(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                                                                             org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> keys,
                                                                                                             long cnt)
      • dictionaryWithObjectsAndKeys

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectsAndKeys​(java.lang.Object firstObject,
                                                                                                        java.lang.Object... varargs)
      • 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

        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)
      • sharedKeySetForKeys

        public static <_KeyType,​_ObjectType> java.lang.Object sharedKeySetForKeys​(NSArray<?> keys)
        Use this method to create a key set to pass to +dictionaryWithSharedKeySet:. The keys are copied from the array and must be copyable. If the array parameter is nil or not an NSArray, an exception is thrown. If the array of keys is empty, an empty key set is returned. The array of keys may contain duplicates, which are ignored (it is undefined which object of each duplicate pair is used). As for any usage of hashing, is recommended that the keys have a well-distributed implementation of -hash, and the hash codes must satisfy the hash/isEqual: invariant. Keys with duplicate hash codes are allowed, but will cause lower performance and increase memory usage.
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static <_KeyType,​_ObjectType> boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • copyWithZone

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

        public long count()
      • countByEnumeratingWithStateObjectsCount

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

        public java.lang.String descriptionInStringsFileFormat()
      • descriptionWithLocale

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

        public java.lang.String descriptionWithLocaleIndent​(java.lang.Object locale,
                                                            long level)
      • fileCreationDate

        public NSDate fileCreationDate()
      • fileExtensionHidden

        public boolean fileExtensionHidden()
      • fileGroupOwnerAccountID

        public NSNumber fileGroupOwnerAccountID()
      • fileGroupOwnerAccountName

        public java.lang.String fileGroupOwnerAccountName()
      • fileHFSCreatorCode

        public int fileHFSCreatorCode()
      • fileHFSTypeCode

        public int fileHFSTypeCode()
      • fileIsAppendOnly

        public boolean fileIsAppendOnly()
      • fileIsImmutable

        public boolean fileIsImmutable()
      • fileModificationDate

        public NSDate fileModificationDate()
      • fileOwnerAccountID

        public NSNumber fileOwnerAccountID()
      • fileOwnerAccountName

        public java.lang.String fileOwnerAccountName()
      • filePosixPermissions

        public long filePosixPermissions()
      • fileSize

        public long fileSize()
      • fileSystemFileNumber

        public long fileSystemFileNumber()
      • fileSystemNumber

        public long fileSystemNumber()
      • fileType

        public java.lang.String fileType()
      • getObjectsAndKeys

        public void getObjectsAndKeys​(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects,
                                      org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> keys)
        This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count:
      • getObjectsAndKeysCount

        public void getObjectsAndKeysCount​(org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> objects,
                                           org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> keys,
                                           long count)
        count refers to the number of elements in the dictionary
      • initWithObjectsForKeysCount

        public NSDictionary<?,​?> initWithObjectsForKeysCount​(org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                                                   org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> keys,
                                                                   long cnt)
      • initWithObjectsAndKeys

        public NSDictionary<?,​?> initWithObjectsAndKeys​(java.lang.Object firstObject,
                                                              java.lang.Object... varargs)
      • keysSortedByValueUsingSelector

        public NSArray<_KeyType> keysSortedByValueUsingSelector​(org.moe.natj.objc.SEL comparator)
      • mutableCopyWithZone

        public java.lang.Object mutableCopyWithZone​(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
      • valueForKey

        public _ObjectType valueForKey​(java.lang.String key)
        Return the result of sending -objectForKey: to the receiver.
        Overrides:
        valueForKey in class NSObject
      • writeToFileAtomically

        public boolean writeToFileAtomically​(java.lang.String path,
                                             boolean useAuxiliaryFile)
      • writeToURLAtomically

        public boolean writeToURLAtomically​(NSURL url,
                                            boolean atomically)
        the atomically flag is ignored if url of a type that cannot be written atomically.
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<_KeyType,​_ObjectType>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<_KeyType,​_ObjectType>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<_KeyType,​_ObjectType>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<_KeyType,​_ObjectType>
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<_KeyType,​_ObjectType>
      • equals

        public boolean equals​(java.lang.Object object)
        Specified by:
        equals in interface java.util.Map<_KeyType,​_ObjectType>
        Overrides:
        equals in class org.moe.natj.objc.ObjCObject
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map<_KeyType,​_ObjectType>
        Overrides:
        hashCode in class java.lang.Object
      • dictionaryWithContentsOfURLError

        public static <_KeyType,​_ObjectType> NSDictionary<java.lang.String,​_ObjectType> dictionaryWithContentsOfURLError​(NSURL url,
                                                                                                                                     org.moe.natj.general.ptr.Ptr<NSError> error)
        Reads dictionary stored in NSPropertyList format from the specified url.
      • initWithContentsOfURLError

        public NSDictionary<java.lang.String,​_ObjectType> initWithContentsOfURLError​(NSURL url,
                                                                                           org.moe.natj.general.ptr.Ptr<NSError> error)
        Reads dictionary stored in NSPropertyList format from the specified url.
      • writeToURLError

        public boolean writeToURLError​(NSURL url,
                                       org.moe.natj.general.ptr.Ptr<NSError> error)
        Serializes this instance to the specified URL in the NSPropertyList format (using NSPropertyListXMLFormat_v1_0). For other formats use NSPropertyListSerialization directly.