<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.lang.Integer
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Float.html#_top_">Previous</a>  <a href="java.lang.Long.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.Integer
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.lang.Number.html#_top_">java.lang.Number</a>
           |
           +----java.lang.Integer
</pre>
<hr>
<dl>
  <dt> public final class <b>Integer</b>
  <dt> extends <a href="java.lang.Number.html#_top_">Number</a>
</dl>
The Integer class wraps a value of the primitive type <code>int</code> 
 in an object. An object of type <code>Integer</code> contains a 
 single field whose type is <code>int</code>. 
 <p>
 In addition, this class provides several methods for converting 
 an <code>int</code> to a <code>String</code> and a 
 <code>String</code> to an <code>int</code>, as well as other 
 constants and methods useful when dealing with an 
 <code>int</code>.
<p>
<hr>
<a name="index"></a>
<h2>
  <img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#MAX_VALUE"><b>MAX_VALUE</b></a>
  <dd>  The largest value of type <code>int</code>.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#MIN_VALUE"><b>MIN_VALUE</b></a>
  <dd>  The smallest value of type <code>int</code>.
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#TYPE"><b>TYPE</b></a>
  <dd>  The Class object representing the primitive type int.
</dl>
<h2>
  <img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Integer(int)"><b>Integer</b></a>(int)
  <dd>  Constructs a newly allocated <code>Integer</code> object that 
 represents the primitive <code>int</code> argument.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Integer(java.lang.String)"><b>Integer</b></a>(String)
  <dd>  Constructs a newly allocated <code>Integer</code> object that 
 represents the value represented by the string.
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#byteValue()"><b>byteValue</b></a>()
  <dd>  Returns the value of this Integer as a byte.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#decode(java.lang.String)"><b>decode</b></a>(String)
  <dd>  Decodes a string into an Integer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#doubleValue()"><b>doubleValue</b></a>()
  <dd>  Returns the value of this Integer as a double.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#equals(java.lang.Object)"><b>equals</b></a>(Object)
  <dd>  Compares this object to the specified object.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#floatValue()"><b>floatValue</b></a>()
  <dd>  Returns the value of this Integer as a float.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInteger(java.lang.String)"><b>getInteger</b></a>(String)
  <dd>  Determines the integer value of the system property with the 
 specified name.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInteger(java.lang.String, int)"><b>getInteger</b></a>(String, int)
  <dd>  Determines the integer value of the system property with the 
 specified name.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getInteger(java.lang.String, java.lang.Integer)"><b>getInteger</b></a>(String, Integer)
  <dd>  Determines the integer value of the system property with the 
 specified name.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#hashCode()"><b>hashCode</b></a>()
  <dd>  Returns a hashcode for this Integer.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#intValue()"><b>intValue</b></a>()
  <dd>  Returns the value of this Integer as an int.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#longValue()"><b>longValue</b></a>()
  <dd>  Returns the value of this Integer as a long.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseInt(java.lang.String)"><b>parseInt</b></a>(String)
  <dd>  Parses the string argument as a signed decimal integer.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseInt(java.lang.String, int)"><b>parseInt</b></a>(String, int)
  <dd>  Parses the string argument as a signed integer in the radix 
 specified by the second argument.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#shortValue()"><b>shortValue</b></a>()
  <dd>  Returns the value of this Integer as a short.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toBinaryString(int)"><b>toBinaryString</b></a>(int)
  <dd>  Creates a string representation of the integer argument as an 
 unsigned integer in base&nbsp;2.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toHexString(int)"><b>toHexString</b></a>(int)
  <dd>  Creates a string representation of the integer argument as an 
 unsigned integer in base&nbsp;16.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toOctalString(int)"><b>toOctalString</b></a>(int)
  <dd>  Creates a string representation of the integer argument as an 
 unsigned integer in base 8.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Returns a String object representing this Integer's value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString(int)"><b>toString</b></a>(int)
  <dd>  Returns a new String object representing the specified integer.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString(int, int)"><b>toString</b></a>(int, int)
  <dd>  Creates a string representation of the first argument in the 
 radix specified by the second argument.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#valueOf(java.lang.String)"><b>valueOf</b></a>(String)
  <dd>  Returns a new Integer object initialized to the value of the
 specified String.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#valueOf(java.lang.String, int)"><b>valueOf</b></a>(String, int)
  <dd>  Returns a new Integer object initialized to the value of the
 specified String.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="MIN_VALUE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>MIN_VALUE</b>
<pre>
 public static final int MIN_VALUE
</pre>
<dl>
  <dd> The smallest value of type <code>int</code>.<p>
</dl>
<a name="MAX_VALUE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>MAX_VALUE</b>
<pre>
 public static final int MAX_VALUE
</pre>
<dl>
  <dd> The largest value of type <code>int</code>.<p>
</dl>
<a name="TYPE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>TYPE</b>
<pre>
 public static final <a href="java.lang.Class.html#_top_">Class</a> TYPE
</pre>
<dl>
  <dd> The Class object representing the primitive type int.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Integer"></a>
<a name="Integer(int)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Integer</b>
<pre>
 public Integer(int value)
</pre>
<dl>
  <dd> Constructs a newly allocated <code>Integer</code> object that 
 represents the primitive <code>int</code> argument.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> value - the value to be represented by the <code>Integer</code>.
  </dl></dd>
</dl>
<a name="Integer(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Integer</b>
<pre>
 public Integer(<a href="java.lang.String.html#_top_">String</a> s) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Constructs a newly allocated <code>Integer</code> object that 
 represents the value represented by the string. The string is 
 converted to an int value as if by the <code>valueOf</code> method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the <code>String</code> to be converted to an
                 <code>Integer</code>.
    <dt> <b>Throws:</b> <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
    <dd> if the <code>String</code> does not
               contain a parsable integer.
    <dt> <b>See Also:</b>
    <dd> <a href="#valueOf(java.lang.String, int)">valueOf</a>
  </dl></dd>
</dl>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="toString(int, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> toString(int i,
                               int radix)
</pre>
<dl>
  <dd> Creates a string representation of the first argument in the 
 radix specified by the second argument. 
 <p>
 If the radix is smaller than <code>Character.MIN_RADIX</code> or 
 larger than <code>Character.MAX_RADIX</code>, then the radix 
 <code>10</code> is used instead. 
 <p>
 If the first argument is negative, the first element of the 
 result is the ASCII minus character <code>'-'</code>. If the first 
 argument is not negative, no sign character appears in the result. 
 The following ASCII characters are used as digits: 
 <ul><code>
   0123456789abcdefghijklmnopqrstuvwxyz
 </code></ul>
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> i - an integer.
    <dd> radix - the radix.
    <dt> <b>Returns:</b>
    <dd> a string representation of the argument in the specified radix.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.Character.html#MAX_RADIX">MAX_RADIX</a>, <a href="java.lang.Character.html#MIN_RADIX">MIN_RADIX</a>
  </dl></dd>
</dl>
<a name="toHexString(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toHexString"><b>toHexString</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> toHexString(int i)
</pre>
<dl>
  <dd> Creates a string representation of the integer argument as an 
 unsigned integer in base&nbsp;16. 
 <p>
 The unsigned integer value is the argument plus 2<sup>32</sup> if 
 the argument is negative; otherwise, it is equal to the argument. 
 This value is converted to a string of ASCII digits in hexadecimal 
 (base&nbsp;16) with no extra leading <code>0</code>s.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> i - an integer.
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned integer value
          represented by the argument in hexadecimal (base&nbsp;16).
  </dl></dd>
</dl>
<a name="toOctalString(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toOctalString"><b>toOctalString</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> toOctalString(int i)
</pre>
<dl>
  <dd> Creates a string representation of the integer argument as an 
 unsigned integer in base 8. 
 <p>
 The unsigned integer value is the argument plus 2<sup>32</sup> if 
 the argument is negative; otherwise, it is equal to the argument. 
 This value is converted to a string of ASCII digits in octal 
 (base&nbsp;8) with no extra leading <code>0</code>s.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> i - an integer
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned integer value
          represented by the argument in octal (base&mnsp;8).
  </dl></dd>
</dl>
<a name="toBinaryString(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toBinaryString"><b>toBinaryString</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> toBinaryString(int i)
</pre>
<dl>
  <dd> Creates a string representation of the integer argument as an 
 unsigned integer in base&nbsp;2. 
 <p>
 The unsigned integer value is the argument plus 2<sup>32</sup>if 
 the argument is negative; otherwise it is equal to the argument. 
 This value is converted to a string of ASCII digits in binary 
 (base&nbsp;2) with no extra leading <code>0</code>s.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> i - an integer.
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned integer value
          represented by the argument in binary (base&nbsp;2).
  </dl></dd>
</dl>
<a name="toString(int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public static <a href="java.lang.String.html#_top_">String</a> toString(int i)
</pre>
<dl>
  <dd> Returns a new String object representing the specified integer. The radix
 is assumed to be 10.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> i - an integer to be converted.
    <dt> <b>Returns:</b>
    <dd> a string representation of the argument in base&nbsp;10.
  </dl></dd>
</dl>
<a name="parseInt(java.lang.String, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseInt"><b>parseInt</b></a>
<pre>
 public static int parseInt(<a href="java.lang.String.html#_top_">String</a> s,
                            int radix) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Parses the string argument as a signed integer in the radix 
 specified by the second argument. The characters in the string 
 must all be digits of the specified radix (as determined by 
 whether <code>Character.digit</code> returns a 
 nonnegative value), except that the first character may be an 
 ASCII minus sign <code>'-'</code> to indicate a negative value. 
 The resulting integer value is returned.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the <code>String</code> containing the integer.
    <dd> radix - the radix to be used.
    <dt> <b>Returns:</b>
    <dd> the integer represented by the string argument in the
             specified radix.
    <dt> <b>Throws:</b> <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
    <dd> if the string does not contain a
               parsable integer.
  </dl></dd>
</dl>
<a name="parseInt(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseInt"><b>parseInt</b></a>
<pre>
 public static int parseInt(<a href="java.lang.String.html#_top_">String</a> s) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Parses the string argument as a signed decimal integer. The 
 characters in the string must all be decimal digits, except that 
 the first character may be an ASCII minus sign <code>'-'</code> to 
 indicate a negative value.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - a string.
    <dt> <b>Returns:</b>
    <dd> the integer represented by the argument in decimal.
    <dt> <b>Throws:</b> <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
    <dd> if the string does not contain a
               parsable integer.
  </dl></dd>
</dl>
<a name="valueOf(java.lang.String, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="valueOf"><b>valueOf</b></a>
<pre>
 public static <a href="#_top_">Integer</a> valueOf(<a href="java.lang.String.html#_top_">String</a> s,
                               int radix) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Returns a new Integer object initialized to the value of the
 specified String.  Throws an exception if the String cannot be
 parsed as an int.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the string to be parsed.
    <dt> <b>Returns:</b>
    <dd> a newly constructed <code>Integer</code> initialized to the
             value represented by the string argument in the specified
             radix.
    <dt> <b>Throws:</b> <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
    <dd> if the <code>String</code> does not
               contain a parsable integer.
  </dl></dd>
</dl>
<a name="valueOf(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="valueOf"><b>valueOf</b></a>
<pre>
 public static <a href="#_top_">Integer</a> valueOf(<a href="java.lang.String.html#_top_">String</a> s) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Returns a new Integer object initialized to the value of the
 specified String.  Throws an exception if the String cannot be
 parsed as an int. The radix is assumed to be 10.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the string to be parsed.
    <dt> <b>Returns:</b>
    <dd> a newly constructed <code>Integer</code> initialized to the
             value represented by the string argument.
    <dt> <b>Throws:</b> <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
    <dd> if the string does not contain a
               parsable integer.
  </dl></dd>
</dl>
<a name="byteValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="byteValue"><b>byteValue</b></a>
<pre>
 public byte byteValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as a byte.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#byteValue()">byteValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="shortValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="shortValue"><b>shortValue</b></a>
<pre>
 public short shortValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as a short.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#shortValue()">shortValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="intValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="intValue"><b>intValue</b></a>
<pre>
 public int intValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as an int.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>int</code> value represented by this object.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#intValue()">intValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="longValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="longValue"><b>longValue</b></a>
<pre>
 public long longValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as a long.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>int</code> value represented by this object that is
          converted to type <code>long</code> and the result of the
          conversion is returned.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#longValue()">longValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="floatValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="floatValue"><b>floatValue</b></a>
<pre>
 public float floatValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as a float.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>int</code> value represented by this object is
          converted to type <code>float</code> and the result of the
          conversion is returned.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#floatValue()">floatValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="doubleValue()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="doubleValue"><b>doubleValue</b></a>
<pre>
 public double doubleValue()
</pre>
<dl>
  <dd> Returns the value of this Integer as a double.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>int</code> value represented by this object is
          converted to type <code>double</code> and the result of the
          conversion is returned.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Number.html#doubleValue()">doubleValue</a> in class <a href="java.lang.Number.html#_top_">Number</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Returns a String object representing this Integer's value.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation of the value of this object in
          base&nbsp;10.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="hashCode()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="hashCode"><b>hashCode</b></a>
<pre>
 public int hashCode()
</pre>
<dl>
  <dd> Returns a hashcode for this Integer.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a hash code value for this object.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#hashCode()">hashCode</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="equals(java.lang.Object)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="equals"><b>equals</b></a>
<pre>
 public boolean equals(<a href="java.lang.Object.html#_top_">Object</a> obj)
</pre>
<dl>
  <dd> Compares this object to the specified object.
 The result is <code>true</code> if and only if the argument is not 
 <code>null</code> and is an <code>Integer</code> object that contains 
 the same <code>int</code> value as this object.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> obj - the object to compare with.
    <dt> <b>Returns:</b>
    <dd> <code>true</code> if the objects are the same;
          <code>false</code> otherwise.
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#equals(java.lang.Object)">equals</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="getInteger(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInteger"><b>getInteger</b></a>
<pre>
 public static <a href="#_top_">Integer</a> getInteger(<a href="java.lang.String.html#_top_">String</a> nm)
</pre>
<dl>
  <dd> Determines the integer value of the system property with the 
 specified name. 
 <p>
 The first argument is treated as the name of a system property. 
 System properties are accessible through <code>getProperty</code>  
 and , a method defined by the <code>System</code> class. The 
 string value of this property is then interpreted as an integer 
 value and an <code>Integer</code> object representing this value is 
 returned. Details of possible numeric formats can be found with 
 the definition of <code>getProperty</code>. 
 <p>
 If there is no property with the specified name, or if the 
 property does not have the correct numeric format, then 
 <code>null</code> is returned.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> nm - property name.
    <dt> <b>Returns:</b>
    <dd> the <code>Integer</code> value of the property.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperty(java.lang.String)">getProperty</a>, <a href="java.lang.System.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>
  </dl></dd>
</dl>
<a name="getInteger(java.lang.String, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInteger"><b>getInteger</b></a>
<pre>
 public static <a href="#_top_">Integer</a> getInteger(<a href="java.lang.String.html#_top_">String</a> nm,
                                  int val)
</pre>
<dl>
  <dd> Determines the integer value of the system property with the 
 specified name. 
 <p>
 The first argument is treated as the name of a system property. 
 System properties are accessible through <code>getProperty</code>  
 and , a method defined by the <code>System</code> class. The 
 string value of this property is then interpreted as an integer 
 value and an <code>Integer</code> object representing this value is 
 returned. Details of possible numeric formats can be found with 
 the definition of <code>getProperty</code>. 
 <p>
 If there is no property with the specified name, or if the 
 property does not have the correct numeric format, then an 
 <code>Integer</code> object that represents the value of the 
 second argument is returned.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> nm - property name.
    <dd> val - default value.
    <dt> <b>Returns:</b>
    <dd> the <code>Integer</code> value of the property.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperty(java.lang.String)">getProperty</a>, <a href="java.lang.System.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>
  </dl></dd>
</dl>
<a name="getInteger(java.lang.String, java.lang.Integer)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getInteger"><b>getInteger</b></a>
<pre>
 public static <a href="#_top_">Integer</a> getInteger(<a href="java.lang.String.html#_top_">String</a> nm,
                                  <a href="#_top_">Integer</a> val)
</pre>
<dl>
  <dd> Determines the integer value of the system property with the 
 specified name. 
 <p>
 The first argument is treated as the name of a system property. 
 System properties are accessible through <code>getProperty</code>  
 and , a method defined by the <code>System</code> class. The 
 string value of this property is then interpreted as an integer 
 value and an <code>Integer</code> object representing this value is 
 returned. 
 <p>
 If the property value begins with "<code>0x</code>" or 
 "<code>#</code>", not followed by a minus sign, the rest 
 of it is parsed as a hexadecimal integer exactly as for the method 
 <code>Integer.valueOf</code> with radix 16. 
 <p>
 If the property value begins with "<code>0</code>" then 
 it is parsed as an octal integer exactly as for the method 
 <code>Integer.valueOf</code> with radix 8. 
 <p>
 Otherwise the property value is parsed as a decimal integer 
 exactly as for the method <code>Integer.valueOf</code> with radix 10.
 <p>
 The second argument is the default value. If there is no property 
 of the specified name, or if the property does not have the 
 correct numeric format, then the second argument is returned.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> nm - property name.
    <dd> val - default value.
    <dt> <b>Returns:</b>
    <dd> the <code>Integer</code> value of the property.
    <dt> <b>See Also:</b>
    <dd> <a href="java.lang.System.html#getProperty(java.lang.String)">getProperty</a>, <a href="java.lang.System.html#getProperty(java.lang.String, java.lang.String)">getProperty</a>
  </dl></dd>
</dl>
<a name="decode(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="decode"><b>decode</b></a>
<pre>
 public static <a href="#_top_">Integer</a> decode(<a href="java.lang.String.html#_top_">String</a> nm) throws <a href="java.lang.NumberFormatException.html#_top_">NumberFormatException</a>
</pre>
<dl>
  <dd> Decodes a string into an Integer. Deals with decimal, hexadecimal,
 and octal numbers.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> nm - the string to decode
  </dl></dd>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.lang.html">This Package</a>  <a href="java.lang.Float.html#_top_">Previous</a>  <a href="java.lang.Long.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
