Class NSUnitConverterLinear

    • Constructor Detail

      • NSUnitConverterLinear

        protected NSUnitConverterLinear​(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()
      • 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)
      • 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)
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • coefficient

        public double coefficient()
        For units that require linear conversion, the methods perform calculations in the form of y = ax + b, where - x is the value in terms of the unit on which this method is called - y is the value in terms of the base unit of the dimension - a is the known coefficient used for this unit's conversion - b is the known constant used for this unit's conversion baseUnitValueFromValue: performs the conversion in the form of y = ax + b, where x represents the value passed in and y represents the value returned. valueFromBaseUnitValue: performs the inverse conversion in the form of x = (y + (-1 * b))/a, where y represents the value passed in and x represents the value returned. An example of this is NSUnitTemperature. For Celsius, baseUnitValueFromValue: calculates the value in Kelvin using the formula K = 1 * °C + 273.15 and valueFromBaseUnitValue: calculates the value in Celsius using the formula C° = (K + (-1 * 273.15))/1 where the coefficient is 1 and the constant is 273.15. For units that only require conversion by scale factor, the coefficient is the scale factor and the constant is always 0. baseUnitValueFromValue: calculates the value in meters using the formula valueInMeters = 1000 * valueInKilometers + 0 and valueFromBaseUnitValue: calculates the value in kilometers using the formula valueInKilometers = valueInMeters / 1000 where the coefficient is 1000 and the constant is 0. This API provides a convenience initializer initWithCoefficient: that assumes the constant is 0.
      • constant

        public double constant()
      • initWithCoefficientConstant

        public NSUnitConverterLinear initWithCoefficientConstant​(double coefficient,
                                                                 double constant)
      • _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