THE PACKAGE JAVA.LANG
java.lang.Integer
20.7
20.7.3
public Integer(int value)
This constructor initializes a newly created
Integer
 object so that it represents
the primitive value that is the argument.
20.7.4
public Integer(String s) throws NumberFormatException
This constructor initializes a newly created
Integer
 object so that it represents
the integer represented by the string in decimal form. The string is converted to an
int
 in exactly the manner used by the
parseInt
 method ( 20.7.18) for radix 10.
20.7.5
public String toString()
The integer value represented by this
Integer
 object is converted to signed deci 
mal 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.7.6
public boolean equals(Object obj)
The result is
true
 if and only if the argument is not
null
 and is an
Integer
object that represents the same
int
 value as this
Integer
 object.
Overrides the
equals
 method of
Object
 ( 20.1.3).
20.7.7
public int hashCode()
The result is the primitive
int
 value represented by this
Integer
 object.
Overrides the
hashCode
 method of
Object
 ( 20.1.4).
20.7.8
public int intValue()
The
int
 value represented by this
Integer
 object is returned.
Overrides the
intValue
 method of
Number
 ( 20.6.1).
20.7.9
public long longValue()
The
int
 value represented by this
Integer
 object is converted ( 5.1.2) to type
long
 and the result of the conversion is returned.
Overrides the
longValue
 method of
Number
 ( 20.6.2).
489






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

java hosting

 

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