<!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.Long
</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.Integer.html#_top_">Previous</a>  <a href="java.lang.Math.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.lang.Long
</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.Long
</pre>
<hr>
<dl>
  <dt> public final class <b>Long</b>
  <dt> extends <a href="java.lang.Number.html#_top_">Number</a>
</dl>
The Long class wraps a value of the primitive type <code>long</code> 
 in an object. An object of type <code>Long</code> contains a single 
 field whose type is <code>long</code>. 
 <p>
 In addition, this class provides several methods for converting a 
 <code>long</code> to a <code>String</code> and a 
 <code>String</code> to a <code>long</code>, as well as other 
 constants and methods useful when dealing with a 
 <code>long</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>long</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>long</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 long.
</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="#Long(long)"><b>Long</b></a>(long)
  <dd>  Constructs a newly allocated <code>Long</code> object that 
 represents the primitive <code>long</code> argument.
  <dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#Long(java.lang.String)"><b>Long</b></a>(String)
  <dd>  Constructs a newly allocated <code>Long</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 Long as a byte.
  <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 Long 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 against 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 Long as a float.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getLong(java.lang.String)"><b>getLong</b></a>(String)
  <dd>  Determines the <code>long</code> 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="#getLong(java.lang.String, java.lang.Long)"><b>getLong</b></a>(String, Long)
  <dd>  Determines the <code>long</code> 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="#getLong(java.lang.String, long)"><b>getLong</b></a>(String, long)
  <dd>  Determines the <code>long</code> 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>  Computes a hashcode for this Long.
  <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 Long 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 Long as a long.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseLong(java.lang.String)"><b>parseLong</b></a>(String)
  <dd>  Parses the string argument as a signed decimal <code>long</code>.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseLong(java.lang.String, int)"><b>parseLong</b></a>(String, int)
  <dd>  Parses the string argument as a signed <code>long</code> 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 Long as a short.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toBinaryString(long)"><b>toBinaryString</b></a>(long)
  <dd>  Creates a string representation of the long 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(long)"><b>toHexString</b></a>(long)
  <dd>  Creates a string representation of the long 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(long)"><b>toOctalString</b></a>(long)
  <dd>  Creates a string representation of the long argument as an 
 unsigned integer in base&nbsp;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 Long's value.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString(long)"><b>toString</b></a>(long)
  <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(long, int)"><b>toString</b></a>(long, 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 long 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 long 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 long MIN_VALUE
</pre>
<dl>
  <dd> The smallest value of type <code>long</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 long MAX_VALUE
</pre>
<dl>
  <dd> The largest value of type <code>long</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 long.<p>
</dl>
<a name="constructors"></a>
<h2>
  <img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="Long"></a>
<a name="Long(long)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Long</b>
<pre>
 public Long(long value)
</pre>
<dl>
  <dd> Constructs a newly allocated <code>Long</code> object that 
 represents the primitive <code>long</code> argument.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> value - the value to be represented by the <code>Long</code>.
  </dl></dd>
</dl>
<a name="Long(java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>Long</b>
<pre>
 public Long(<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>Long</code> object that 
 represents the value represented by the string. The string is 
 converted to an <code>long</code> value as if by the 
 <code>valueOf</code> method.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the string to be converted to a <code>Long</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 long integer.
    <dt> <b>See Also:</b>
    <dd> <a href="#valueOf(java.lang.String)">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(long, 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(long 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 sign <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 - a long.
    <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(long)"><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(long i)
</pre>
<dl>
  <dd> Creates a string representation of the long argument as an 
 unsigned integer in base&nbsp;16. 
 <p>
 The unsigned long value is the argument plus 2<sup>64</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 - a <code>long</code>.
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned long value
          represented by the argument in hexadecimal (base&nbsp;16).
  </dl></dd>
</dl>
<a name="toOctalString(long)"><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(long i)
</pre>
<dl>
  <dd> Creates a string representation of the long argument as an 
 unsigned integer in base&nbsp;8. 
 <p>
 The unsigned long value is the argument plus 2<sup>64</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 - a <code>long</code>.
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned long value
          represented by the argument in octal (base&nbsp;8).
  </dl></dd>
</dl>
<a name="toBinaryString(long)"><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(long i)
</pre>
<dl>
  <dd> Creates a string representation of the long argument as an 
 unsigned integer in base&nbsp;2. 
 <p>
 The unsigned long value is the argument plus 2<sup>64</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 - a long.
    <dt> <b>Returns:</b>
    <dd> the string representation of the unsigned long value
          represented by the argument in binary (base&nbsp;2).
  </dl></dd>
</dl>
<a name="toString(long)"><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(long 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 - a <code>long</code> to be converted.
    <dt> <b>Returns:</b>
    <dd> a string representation of the argument in base&nbsp;10.
  </dl></dd>
</dl>
<a name="parseLong(java.lang.String, int)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseLong"><b>parseLong</b></a>
<pre>
 public static long parseLong(<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 <code>long</code> 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 <code>long</code> value is returned.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the <code>String</code> containing the
                     <code>long</code>.
    <dd> radix - the radix to be used.
    <dt> <b>Returns:</b>
    <dd> the <code>long</code> 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="parseLong(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseLong"><b>parseLong</b></a>
<pre>
 public static long parseLong(<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 <code>long</code>. 
 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 <code>long</code> 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 <code>long</code>.
  </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_">Long</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 long object initialized to the value of the
 specified String. Throws an exception if the String cannot be
 parsed as a long.
<p>
  <dd><dl>
    <dt> <b>Parameters:</b>
    <dd> s - the <code>String</code> containing the
                     <code>long</code>.
    <dd> radix - the radix to be used.
    <dt> <b>Returns:</b>
    <dd> a newly constructed <code>Long</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 <code>long</code>.
  </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_">Long</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 long object initialized to the value of the
 specified String. Throws an exception if the String cannot be
 parsed as a long. 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>Long</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 <code>String</code> does not
               contain a parsable <code>long</code>.
  </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 Long 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 Long 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 Long as an int.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>long</code> value represented by this object is
          converted to type <code>int</code> and the result of the
          conversion is returned.
    <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 Long as a long.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>long</code> value represented by this object.
    <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 Long as a float.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>long</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 Long as a double.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> the <code>long</code> value represented by this object that
          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 Long's value.
<p>
  <dd><dl>
    <dt> <b>Returns:</b>
    <dd> a string representation 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> Computes a hashcode for this Long.
<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 against the specified object.
 The result is <code>true</code> if and only if the argument is 
 not <code>null</code> and is a <code>Long</code> object that 
 contains the same <code>long</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="getLong(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLong"><b>getLong</b></a>
<pre>
 public static <a href="#_top_">Long</a> getLong(<a href="java.lang.String.html#_top_">String</a> nm)
</pre>
<dl>
  <dd> Determines the <code>long</code> 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 a long value 
 and a <code>Long</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>Long</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="getLong(java.lang.String, long)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLong"><b>getLong</b></a>
<pre>
 public static <a href="#_top_">Long</a> getLong(<a href="java.lang.String.html#_top_">String</a> nm,
                            long val)
</pre>
<dl>
  <dd> Determines the <code>long</code> 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 a long value 
 and a <code>Long</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 a 
 <code>Long</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>Long</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="getLong(java.lang.String, java.lang.Long)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getLong"><b>getLong</b></a>
<pre>
 public static <a href="#_top_">Long</a> getLong(<a href="java.lang.String.html#_top_">String</a> nm,
                            <a href="#_top_">Long</a> val)
</pre>
<dl>
  <dd> Determines the <code>long</code> 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 a long value 
 and a <code>Long</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>Long.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>Long.valueOf</code> with radix 8. 
 <p>
 Otherwise the property value is parsed as a decimal integer 
 exactly as for the method <code>Long.valueOf</code> with radix 10. 
 <p>
 Note that, in every case, neither <code>L</code> nor 
 <code>l</code> is permitted to appear at the end of the string. 
 <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 - the property name.
    <dd> val - the default <code>Long</code> value.
    <dt> <b>Returns:</b>
    <dd> the <code>long</code> value of the property.
    <dt> <b>See Also:</b>
    <dd> <a href="#valueOf(java.lang.String, int)">valueOf</a>, <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>
<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.Integer.html#_top_">Previous</a>  <a href="java.lang.Math.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
