Class NSLengthFormatter

    • Constructor Detail

      • NSLengthFormatter

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static NSLengthFormatter 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()
      • 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

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

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

        public static long version_static()
      • getObjectValueForStringErrorDescription

        public boolean getObjectValueForStringErrorDescription​(@Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<org.moe.natj.objc.ObjCObject> obj,
                                                               @NotNull
                                                               @NotNull java.lang.String string,
                                                               @Nullable
                                                               @Nullable org.moe.natj.general.ptr.Ptr<NSString> error)
        No parsing is supported. This method will return NO.
        Overrides:
        getObjectValueForStringErrorDescription in class NSFormatter
      • isForPersonHeightUse

        public boolean isForPersonHeightUse()
        default is NO; if it is set to YES, the number argument for -stringFromMeters: and -unitStringFromMeters: is considered as a person's height
      • setForPersonHeightUse

        public void setForPersonHeightUse​(boolean value)
        default is NO; if it is set to YES, the number argument for -stringFromMeters: and -unitStringFromMeters: is considered as a person's height
      • numberFormatter

        public NSNumberFormatter numberFormatter()
        default is NSNumberFormatter with NSNumberFormatterDecimalStyle
      • setNumberFormatter

        public void setNumberFormatter​(NSNumberFormatter value)
        default is NSNumberFormatter with NSNumberFormatterDecimalStyle
      • setUnitStyle

        public void setUnitStyle​(long value)
        default is NSFormattingUnitStyleMedium
      • stringFromMeters

        @NotNull
        public @NotNull java.lang.String stringFromMeters​(double numberInMeters)
        Format a number in meters to a localized string with the locale-appropriate unit and an appropriate scale (e.g. 4.3m = 14.1ft in the US locale).
      • stringFromValueUnit

        @NotNull
        public @NotNull java.lang.String stringFromValueUnit​(double value,
                                                             long unit)
        Format a combination of a number and an unit to a localized string.
      • unitStringFromMetersUsedUnit

        @NotNull
        public @NotNull java.lang.String unitStringFromMetersUsedUnit​(double numberInMeters,
                                                                      @Nullable
                                                                      @Nullable org.moe.natj.general.ptr.NIntPtr unitp)
        Return the locale-appropriate unit, the same unit used by -stringFromMeters:.
      • unitStringFromValueUnit

        @NotNull
        public @NotNull java.lang.String unitStringFromValueUnit​(double value,
                                                                 long unit)
        Return a localized string of the given unit, and if the unit is singular or plural is based on the given number.
      • unitStyle

        public long unitStyle()
        default is NSFormattingUnitStyleMedium
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.