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 NSDictionary<?,​?> 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()
      • dictionary

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

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

        @Nullable
        @Deprecated
        public static <_KeyType,​_ObjectType> @Nullable NSDictionary<_KeyType,​_ObjectType> dictionaryWithContentsOfURL​(@NotNull
                                                                                                                                  @NotNull NSURL url)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • dictionaryWithDictionary

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

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectForKey​(@NotNull
                                                                                                      _ObjectType object,
                                                                                                      @NotNull
                                                                                                      _KeyType key)
      • dictionaryWithObjectsForKeys

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

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

        public static <_KeyType,​_ObjectType> NSDictionary<?,​?> dictionaryWithObjectsAndKeys​(@NotNull
                                                                                                        @NotNull 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

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

        @NotNull
        public static <_KeyType,​_ObjectType> @NotNull java.lang.Object sharedKeySetForKeys​(@NotNull
                                                                                                 @NotNull NSArray<_KeyType> 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. API-Since: 6.0
      • 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

        @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()
      • countByEnumeratingWithStateObjectsCount

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

        @NotNull
        public @NotNull java.lang.String descriptionInStringsFileFormat()
      • descriptionWithLocale

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

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

        @Nullable
        public @Nullable NSDate fileCreationDate()
      • fileExtensionHidden

        public boolean fileExtensionHidden()
      • fileGroupOwnerAccountID

        @Nullable
        public @Nullable NSNumber fileGroupOwnerAccountID()
      • fileGroupOwnerAccountName

        @Nullable
        public @Nullable java.lang.String fileGroupOwnerAccountName()
      • fileHFSCreatorCode

        public int fileHFSCreatorCode()
      • fileHFSTypeCode

        public int fileHFSTypeCode()
      • fileIsAppendOnly

        public boolean fileIsAppendOnly()
      • fileIsImmutable

        public boolean fileIsImmutable()
      • fileModificationDate

        @Nullable
        public @Nullable NSDate fileModificationDate()
      • fileOwnerAccountID

        @Nullable
        public @Nullable NSNumber fileOwnerAccountID()
      • fileOwnerAccountName

        @Nullable
        public @Nullable java.lang.String fileOwnerAccountName()
      • filePosixPermissions

        public long filePosixPermissions()
      • fileSize

        public long fileSize()
      • fileSystemFileNumber

        public long fileSystemFileNumber()
      • fileSystemNumber

        public long fileSystemNumber()
      • fileType

        @Nullable
        public @Nullable java.lang.String fileType()
      • getObjectsAndKeys

        @Deprecated
        public void getObjectsAndKeys​(@Nullable
                                      @Nullable org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                      @Nullable
                                      @Nullable org.moe.natj.general.ptr.Ptr<_KeyType> keys)
        Deprecated.
        This method is unsafe because it could potentially cause buffer overruns. You should use -getObjects:andKeys:count: API-Since: 2.0 Deprecated-Since: 11.0 Deprecated-Message: Use -getObjects:andKeys:count: instead
      • getObjectsAndKeysCount

        public void getObjectsAndKeysCount​(@Nullable
                                           @Nullable org.moe.natj.general.ptr.Ptr<_ObjectType> objects,
                                           @Nullable
                                           @Nullable org.moe.natj.general.ptr.Ptr<_KeyType> keys,
                                           long count)
        count refers to the number of elements in the dictionary API-Since: 5.0
      • initWithContentsOfFile

        @Nullable
        @Deprecated
        public @Nullable NSDictionary<_KeyType,​_ObjectType> initWithContentsOfFile​(@NotNull
                                                                                         @NotNull java.lang.String path)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • initWithContentsOfURL

        @Nullable
        @Deprecated
        public @Nullable NSDictionary<_KeyType,​_ObjectType> initWithContentsOfURL​(@NotNull
                                                                                        @NotNull NSURL url)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • initWithObjectsForKeysCount

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

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

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

        @NotNull
        public @NotNull java.lang.Object mutableCopyWithZone​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • objectForKeyedSubscript

        @Nullable
        public _ObjectType objectForKeyedSubscript​(@NotNull
                                                   _KeyType key)
        API-Since: 6.0
      • _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

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

        @Deprecated
        public boolean writeToFileAtomically​(@NotNull
                                             @NotNull java.lang.String path,
                                             boolean useAuxiliaryFile)
        Deprecated.
        API-Since: 2.0 Deprecated-Since: 100000.0
      • writeToURLAtomically

        @Deprecated
        public boolean writeToURLAtomically​(@NotNull
                                            @NotNull NSURL url,
                                            boolean atomically)
        Deprecated.
        the atomically flag is ignored if url of a type that cannot be written atomically. API-Since: 2.0 Deprecated-Since: 100000.0
      • 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

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

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

        public boolean writeToURLError​(@NotNull
                                       @NotNull NSURL url,
                                       @Nullable
                                       @Nullable 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. API-Since: 11.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.