Class NSNumber

    • Constructor Detail

      • NSNumber

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static NSNumber alloc()
      • allocWithZone

        public static NSNumber 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)
      • new_objc

        public static NSNumber new_objc()
      • numberWithBool

        @NotNull
        public static @NotNull NSNumber numberWithBool​(boolean value)
      • numberWithChar

        @NotNull
        public static @NotNull NSNumber numberWithChar​(byte value)
      • numberWithDouble

        @NotNull
        public static @NotNull NSNumber numberWithDouble​(double value)
      • numberWithFloat

        @NotNull
        public static @NotNull NSNumber numberWithFloat​(float value)
      • numberWithInt

        @NotNull
        public static @NotNull NSNumber numberWithInt​(int value)
      • numberWithInteger

        @NotNull
        public static @NotNull NSNumber numberWithInteger​(long value)
        API-Since: 2.0
      • numberWithLong

        @NotNull
        public static @NotNull NSNumber numberWithLong​(long value)
      • numberWithLongLong

        @NotNull
        public static @NotNull NSNumber numberWithLongLong​(long value)
      • numberWithShort

        @NotNull
        public static @NotNull NSNumber numberWithShort​(short value)
      • numberWithUnsignedChar

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedChar​(byte value)
      • numberWithUnsignedInt

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedInt​(int value)
      • numberWithUnsignedInteger

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedInteger​(long value)
        API-Since: 2.0
      • numberWithUnsignedLong

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedLong​(long value)
      • numberWithUnsignedLongLong

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedLongLong​(long value)
      • numberWithUnsignedShort

        @NotNull
        public static @NotNull NSNumber numberWithUnsignedShort​(char value)
      • 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()
      • valueWithObjCType

        @NotNull
        public static @NotNull NSValue valueWithObjCType​(@NotNull
                                                         @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                                         @NotNull
                                                         @NotNull java.lang.String type)
      • valueWithBytesObjCType

        @NotNull
        public static @NotNull NSValue valueWithBytesObjCType​(@NotNull
                                                              @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                                              @NotNull
                                                              @NotNull java.lang.String type)
      • valueWithCATransform3D

        @NotNull
        public static @NotNull NSValue valueWithCATransform3D​(CATransform3D t)
      • valueWithCGAffineTransform

        @NotNull
        public static @NotNull NSValue valueWithCGAffineTransform​(CGAffineTransform transform)
      • valueWithCGPoint

        @NotNull
        public static @NotNull NSValue valueWithCGPoint​(CGPoint point)
      • valueWithCGRect

        @NotNull
        public static @NotNull NSValue valueWithCGRect​(CGRect rect)
      • valueWithCGSize

        @NotNull
        public static @NotNull NSValue valueWithCGSize​(CGSize size)
      • valueWithCGVector

        @NotNull
        public static @NotNull NSValue valueWithCGVector​(CGVector vector)
      • valueWithCMTime

        @NotNull
        public static @NotNull NSValue valueWithCMTime​(CMTime time)
      • valueWithCMTimeMapping

        @NotNull
        public static @NotNull NSValue valueWithCMTimeMapping​(CMTimeMapping timeMapping)
      • valueWithCMTimeRange

        @NotNull
        public static @NotNull NSValue valueWithCMTimeRange​(CMTimeRange timeRange)
      • valueWithMKCoordinateSpan

        @NotNull
        public static @NotNull NSValue valueWithMKCoordinateSpan​(MKCoordinateSpan span)
      • valueWithNonretainedObject

        @NotNull
        public static @NotNull NSValue valueWithNonretainedObject​(@Nullable
                                                                  @Nullable java.lang.Object anObject)
      • valueWithPointer

        @NotNull
        public static @NotNull NSValue valueWithPointer​(@Nullable
                                                        @Nullable org.moe.natj.general.ptr.ConstVoidPtr pointer)
      • valueWithRange

        @NotNull
        public static @NotNull NSValue valueWithRange​(NSRange range)
      • valueWithSCNMatrix4

        @NotNull
        public static @NotNull NSValue valueWithSCNMatrix4​(SCNMatrix4 v)
      • valueWithSCNVector3

        @NotNull
        public static @NotNull NSValue valueWithSCNVector3​(SCNVector3 v)
      • valueWithSCNVector4

        @NotNull
        public static @NotNull NSValue valueWithSCNVector4​(SCNVector4 v)
      • valueWithUIEdgeInsets

        @NotNull
        public static @NotNull NSValue valueWithUIEdgeInsets​(UIEdgeInsets insets)
      • valueWithUIOffset

        @NotNull
        public static @NotNull NSValue valueWithUIOffset​(UIOffset insets)
      • version_static

        public static long version_static()
      • boolValue

        public boolean boolValue()
      • charValue

        public byte charValue()
      • compare

        public long compare​(@NotNull
                            @NotNull NSNumber otherNumber)
      • descriptionWithLocale

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

        public double doubleValue()
      • floatValue

        public float floatValue()
      • initWithBool

        @NotNull
        public @NotNull NSNumber initWithBool​(boolean value)
      • initWithBytesObjCType

        public NSNumber initWithBytesObjCType​(@NotNull
                                              @NotNull org.moe.natj.general.ptr.ConstVoidPtr value,
                                              @NotNull
                                              @NotNull java.lang.String type)
        Overrides:
        initWithBytesObjCType in class NSValue
      • initWithChar

        @NotNull
        public @NotNull NSNumber initWithChar​(byte value)
      • initWithDouble

        @NotNull
        public @NotNull NSNumber initWithDouble​(double value)
      • initWithFloat

        @NotNull
        public @NotNull NSNumber initWithFloat​(float value)
      • initWithInt

        @NotNull
        public @NotNull NSNumber initWithInt​(int value)
      • initWithInteger

        @NotNull
        public @NotNull NSNumber initWithInteger​(long value)
        API-Since: 2.0
      • initWithLong

        @NotNull
        public @NotNull NSNumber initWithLong​(long value)
      • initWithLongLong

        @NotNull
        public @NotNull NSNumber initWithLongLong​(long value)
      • initWithShort

        @NotNull
        public @NotNull NSNumber initWithShort​(short value)
      • initWithUnsignedChar

        @NotNull
        public @NotNull NSNumber initWithUnsignedChar​(byte value)
      • initWithUnsignedInt

        @NotNull
        public @NotNull NSNumber initWithUnsignedInt​(int value)
      • initWithUnsignedInteger

        @NotNull
        public @NotNull NSNumber initWithUnsignedInteger​(long value)
        API-Since: 2.0
      • initWithUnsignedLong

        @NotNull
        public @NotNull NSNumber initWithUnsignedLong​(long value)
      • initWithUnsignedLongLong

        @NotNull
        public @NotNull NSNumber initWithUnsignedLongLong​(long value)
      • initWithUnsignedShort

        @NotNull
        public @NotNull NSNumber initWithUnsignedShort​(char value)
      • intValue

        public int intValue()
      • integerValue

        public long integerValue()
        API-Since: 2.0
      • isEqualToNumber

        public boolean isEqualToNumber​(@NotNull
                                       @NotNull NSNumber number)
      • longLongValue

        public long longLongValue()
      • longValue

        public long longValue()
      • shortValue

        public short shortValue()
      • stringValue

        @NotNull
        public @NotNull java.lang.String stringValue()
      • _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
        Overrides:
        _supportsSecureCoding in class NSValue
      • unsignedCharValue

        public byte unsignedCharValue()
      • unsignedIntValue

        public int unsignedIntValue()
      • unsignedIntegerValue

        public long unsignedIntegerValue()
        API-Since: 2.0
      • unsignedLongLongValue

        public long unsignedLongLongValue()
      • unsignedLongValue

        public long unsignedLongValue()
      • unsignedShortValue

        public char unsignedShortValue()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.