20.8
java.lang.Long
THE PACKAGE JAVA.LANG
20.8.3
public Long(long value)
This constructor initializes a newly created
Long
object so that it represents the
primitive value that is the argument.
20.8.4
public Long(String s) throws NumberFormatException
This constructor initializes a newly created
Long
object so that it represents the
integer represented by the string in decimal form. The string is converted to a
long
value in exactly the manner used by the
parseLong
method ( 20.8.17) for
radix 10.
20.8.5
public String toString()
The
long
integer value represented by this
Long
object is converted to signed dec
imal representation and returned as a string, exactly as if the integer value were
given as an argument to the
toString
method that takes one argument ( 20.7.12).
Overrides the
toString
method of
Object
( 20.1.2).
20.8.6
public boolean equals(Object obj)
The result is
true
if and only if the argument is not
null
and is a
Long
object that
represents the same
long
value as this
Long
object.
Overrides the
equals
method of
Object
( 20.1.3).
20.8.7
public int hashCode()
The result is the exclusive OR of the two halves of the primitive
long
value repre
sented by this
Long
object. That is, the hashcode is the value of the expression:
(int)(this.longValue()^(this.longValue()>>>32))
Overrides the
hashCode
method of
Object
( 20.1.4).
20.8.8
public int intValue()
The
long
value represented by this
Long
object is converted ( 5.1.3) to type
int
and the result of the conversion is returned.
Overrides the
intValue
method of
Number
( 20.6.1).
496
footer
Our partners:
PHP: Hypertext Preprocessor Best Web Hosting
Java Web Hosting
Inexpensive Web Hosting
Jsp Web Hosting
Cheapest Web Hosting
Jsp Hosting
Cheap Hosting
Visionwebhosting.net Business web hosting division of Web
Design Plus. All rights reserved