Java.Lang.Integer.ValueOf Method
Returns a Integer instance for the specified integer value.

Syntax

[Android.Runtime.Register("valueOf", "(I)Ljava/lang/Integer;", "")]
public static Integer ValueOf (int i)

Parameters

i
the integer value to store in the instance.

Returns

Documentation for this section has not yet been entered.

Remarks

Returns a Integer instance for the specified integer value.

If it is not necessary to get a new Integer instance, it is recommended to use this method instead of the constructor, since it maintains a cache of instances which may result in better performance.

[Android Documentation]

Requirements

Namespace: Java.Lang
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1