20.4
java.lang.Boolean
THE PACKAGE JAVA.LANG
20.4.5
public String toString()
If this
Boolean
 object represents
true
, a string equal to
"true"
 is returned. If
this
Boolean
 object represents
false
, a string equal to
"false"
 is returned.
Overrides the
toString
 method of
Object
 ( 20.1.2).
20.4.6
public boolean equals(Object obj)
The result is
true
 if and only if the argument is not
null
 and is a
Boolean
 object
that represents the same
boolean
 value as this
Boolean
 object.
Overrides the
equals
 method of
Object
 ( 20.1.3).
20.4.7
public int hashCode()
If this
Boolean
 object represents
true
, the integer
1231
 is returned. If this
Boolean
object represents
false
, the integer
1237
 is returned.
Overrides the
hashCode
 method of
Object
 ( 20.1.4).
20.4.8
public boolean booleanValue()
The primitive
boolean
 value represented by this
Boolean
 object is returned.
20.4.9
public static boolean valueOf(String s)
The result is
true
 if and only if the argument is not
null
 and is equal, ignoring
case, to the string
"true"
.
Example:
Boolean.valueOf("True")
 returns
true
.
Example:
Boolean.valueOf("yes")
 returns
false
.
20.4.10
public static boolean getBoolean(String name)
The result is
true
 if and only if the value of the system property ( 20.18.9) named
by the argument is equal, ignoring case, to the string
"true"
.
This above all: to thine ownself be true,
And it must follow, as the night the day,
Thou canst not then be false to any man.
 William Shakespeare,
Hamlet
, Act I, scene iii
470






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