Android Guides | Samples

Java.Lang.Integer Class

The wrapper for the primitive type int.

See Also: Integer

Syntax

[Android.Runtime.Register("java/lang/Integer", DoNotGenerateAcw=true)]
public sealed class Integer : Number, IComparable, IConvertible, IDisposable

Remarks

The wrapper for the primitive type int.

Implementation note: The "bit twiddling" methods in this class use techniques described in and

See Also

[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

The members of Java.Lang.Integer are listed below.

See Also: Number

Public Constructors

Constructs a new Integer with the specified primitive integer value.
Constructs a new Integer from the specified string.

Public Fields

const
MaxValueInt32 (2147483647). Constant for the maximum int value, 231-1.
const
MinValueInt32 (-2147483648). Constant for the minimum int value, -231.
const
SizeInt32 (32). Constant for the number of bits needed to represent an int in two's complement form.

Public Properties

[read-only]
static
TypeClass. The Class object that represents the primitive type int.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

static
BitCount(Int32) : Int32
Counts the number of 1 bits in the specified integer; this is also referred to as population count.
static
Compare(Int32, Int32) : Int32
Compares two int values.
CompareTo(Integer) : Int32
Compares this object to the specified integer object to determine their relative order.
static
Decode(String) : Integer
Parses the specified string and returns a Integer instance if the string can be decoded into an integer value.
override
DoubleValue() : Double
Returns this object's value as a double.
override
FloatValue() : Single
Returns this object's value as a float.
static
GetInteger(String) : Integer
Returns the Integer value of the system property identified by string.
static
GetInteger(String, Integer) : Integer
Returns the Integer value of the system property identified by string.
static
GetInteger(String, Int32) : Integer
Returns the Integer value of the system property identified by string.
static
HighestOneBit(Int32) : Int32
Determines the highest (leftmost) bit of the specified integer that is 1 and returns the bit mask value for that bit.
override
IntValue() : Int32
Gets the primitive value of this int.
override
LongValue() : Int64
Returns this object's value as a long.
static
LowestOneBit(Int32) : Int32
Determines the lowest (rightmost) bit of the specified integer that is 1 and returns the bit mask value for that bit.
static
NumberOfLeadingZeros(Int32) : Int32
Determines the number of leading zeros in the specified integer prior to the Integer.HighestOneBit(Int32).
static
NumberOfTrailingZeros(Int32) : Int32
Determines the number of trailing zeros in the specified integer after the Integer.LowestOneBit(Int32).
static
ParseInt(String) : Int32
Parses the specified string as a signed decimal integer value.
static
ParseInt(String, Int32) : Int32
Parses the specified string as a signed integer value using the specified radix.
static
Reverse(Int32) : Int32
Reverses the order of the bits of the specified integer.
static
ReverseBytes(Int32) : Int32
Reverses the order of the bytes of the specified integer.
static
RotateLeft(Int32, Int32) : Int32
Rotates the bits of the specified integer to the left by the specified number of bits.
static
RotateRight(Int32, Int32) : Int32
Rotates the bits of the specified integer to the right by the specified number of bits.
static
Signum(Int32) : Int32
Returns the value of the signum function for the specified integer.
static
ToBinaryString(Int32) : String
Converts the specified integer into its binary string representation.
static
ToHexString(Int32) : String
Converts the specified integer into its hexadecimal string representation.
static
ToOctalString(Int32) : String
Converts the specified integer into its octal string representation.
static
ToString(Int32) : String
Converts the specified integer into its decimal string representation.
static
ToString(Int32, Int32) : String
Converts the specified signed integer into a string representation based on the specified radix.
static
ValueOf(Int32) : Integer
Returns a Integer instance for the specified integer value.
static
ValueOf(String) : Integer
Parses the specified string as a signed decimal integer value.
static
ValueOf(String, Int32) : Integer
Parses the specified string as a signed integer value using the specified radix.

Public Operators

Explicitly Implemented Interface Members