Ask Learn
Preview
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign inThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Integer(Int32) |
Constructs a newly allocated |
Integer(String) |
Constructs a newly allocated |
Constructs a newly allocated Integer
object that
represents the specified int
value.
[Android.Runtime.Register(".ctor", "(I)V", "")]
public Integer(int value);
[<Android.Runtime.Register(".ctor", "(I)V", "")>]
new Java.Lang.Integer : int -> Java.Lang.Integer
the value to be represented by the
Integer
object.
Constructs a newly allocated Integer
object that represents the specified int
value.
This member is deprecated. It is rarely appropriate to use this constructor. The static factory #valueOf(int)
is generally a better choice, as it is likely to yield significantly better space and time performance.
Java documentation for java.lang.Integer.Integer(int)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Constructs a newly allocated Integer
object that
represents the int
value indicated by the
String
parameter.
[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public Integer(string s);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Lang.Integer : string -> Java.Lang.Integer
the String
to be converted to an Integer
.
if string
cannot be parsed as an integer value.
Constructs a newly allocated Integer
object that represents the int
value indicated by the String
parameter. The string is converted to an int
value in exactly the manner used by the parseInt
method for radix 10.
This member is deprecated. It is rarely appropriate to use this constructor. Use #parseInt(String)
to convert a string to a int
primitive, or use #valueOf(String)
to convert a string to an Integer
object.
Java documentation for java.lang.Integer.Integer(java.lang.String)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Ask Learn is an AI assistant that can answer questions, clarify concepts, and define terms using trusted Microsoft documentation.
Please sign in to use Ask Learn.
Sign in