Class NSLocale

    • Constructor Detail

      • NSLocale

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

      • ISOCountryCodes

        public static NSArray<java.lang.String> ISOCountryCodes()
      • ISOCurrencyCodes

        public static NSArray<java.lang.String> ISOCurrencyCodes()
      • ISOLanguageCodes

        public static NSArray<java.lang.String> ISOLanguageCodes()
      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSLocale alloc()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • autoupdatingCurrentLocale

        public static NSLocale autoupdatingCurrentLocale()
        generally you should use this property
      • availableLocaleIdentifiers

        public static NSArray<java.lang.String> availableLocaleIdentifiers()
      • 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)
      • canonicalLanguageIdentifierFromString

        public static java.lang.String canonicalLanguageIdentifierFromString​(java.lang.String string)
      • canonicalLocaleIdentifierFromString

        public static java.lang.String canonicalLocaleIdentifierFromString​(java.lang.String string)
      • characterDirectionForLanguage

        public static long characterDirectionForLanguage​(java.lang.String isoLangCode)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • commonISOCurrencyCodes

        public static NSArray<java.lang.String> commonISOCurrencyCodes()
      • componentsFromLocaleIdentifier

        public static NSDictionary<java.lang.String,​java.lang.String> componentsFromLocaleIdentifier​(java.lang.String string)
      • currentLocale

        public static NSLocale currentLocale()
        an object representing the user's current locale
      • 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()
      • 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)
      • lineDirectionForLanguage

        public static long lineDirectionForLanguage​(java.lang.String isoLangCode)
      • localeIdentifierFromComponents

        public static java.lang.String localeIdentifierFromComponents​(NSDictionary<java.lang.String,​java.lang.String> dict)
      • localeIdentifierFromWindowsLocaleCode

        public static java.lang.String localeIdentifierFromWindowsLocaleCode​(int lcid)
      • localeWithLocaleIdentifier

        public static NSLocale localeWithLocaleIdentifier​(java.lang.String ident)
      • new_objc

        public static java.lang.Object new_objc()
      • preferredLanguages

        public static NSArray<java.lang.String> preferredLanguages()
        note that this list does not indicate what language the app is actually running in; the NSBundle.mainBundle object determines that at launch and knows that information
      • 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()
      • systemLocale

        public static NSLocale systemLocale()
        the default generic root locale with little localization
      • version_static

        public static long version_static()
      • windowsLocaleCodeFromLocaleIdentifier

        public static int windowsLocaleCodeFromLocaleIdentifier​(java.lang.String localeIdentifier)
      • alternateQuotationBeginDelimiter

        public java.lang.String alternateQuotationBeginDelimiter()
      • alternateQuotationEndDelimiter

        public java.lang.String alternateQuotationEndDelimiter()
      • calendarIdentifier

        public java.lang.String calendarIdentifier()
      • collationIdentifier

        public java.lang.String collationIdentifier()
      • collatorIdentifier

        public java.lang.String collatorIdentifier()
      • copyWithZone

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

        public java.lang.String countryCode()
      • currencyCode

        public java.lang.String currencyCode()
      • currencySymbol

        public java.lang.String currencySymbol()
      • decimalSeparator

        public java.lang.String decimalSeparator()
      • displayNameForKeyValue

        public java.lang.String displayNameForKeyValue​(java.lang.String key,
                                                       java.lang.Object value)
      • groupingSeparator

        public java.lang.String groupingSeparator()
      • initWithLocaleIdentifier

        public NSLocale initWithLocaleIdentifier​(java.lang.String string)
      • languageCode

        public java.lang.String languageCode()
      • localeIdentifier

        public java.lang.String localeIdentifier()
        same as NSLocaleIdentifier
      • localizedStringForCalendarIdentifier

        public java.lang.String localizedStringForCalendarIdentifier​(java.lang.String calendarIdentifier)
      • localizedStringForCollationIdentifier

        public java.lang.String localizedStringForCollationIdentifier​(java.lang.String collationIdentifier)
      • localizedStringForCollatorIdentifier

        public java.lang.String localizedStringForCollatorIdentifier​(java.lang.String collatorIdentifier)
      • localizedStringForCountryCode

        public java.lang.String localizedStringForCountryCode​(java.lang.String countryCode)
      • localizedStringForCurrencyCode

        public java.lang.String localizedStringForCurrencyCode​(java.lang.String currencyCode)
      • localizedStringForLanguageCode

        public java.lang.String localizedStringForLanguageCode​(java.lang.String languageCode)
      • localizedStringForLocaleIdentifier

        public java.lang.String localizedStringForLocaleIdentifier​(java.lang.String localeIdentifier)
      • localizedStringForScriptCode

        public java.lang.String localizedStringForScriptCode​(java.lang.String scriptCode)
      • localizedStringForVariantCode

        public java.lang.String localizedStringForVariantCode​(java.lang.String variantCode)
      • objectForKey

        public java.lang.Object objectForKey​(java.lang.String key)
      • quotationBeginDelimiter

        public java.lang.String quotationBeginDelimiter()
      • quotationEndDelimiter

        public java.lang.String quotationEndDelimiter()
      • scriptCode

        public java.lang.String scriptCode()
      • _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
      • usesMetricSystem

        public boolean usesMetricSystem()
      • variantCode

        public java.lang.String variantCode()