KickJava   Java API By Example, From Geeks To Geeks.

Java > Java SE, EE, ME > java > lang > Boolean

java.lang
Class Boolean

java.lang.Object
  extended by java.lang.Boolean
All Implemented Interfaces:
Serializable, Comparable<Boolean>
See Also:
Top Examples, Source Code

public Boolean(boolean value)
See Also:
valueOf(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[148]Create new Boolean
By Anonymous on 2004/03/05 19:18:16  Rate
boolean done; 
 done=new Boolean ( tmpstr4 ) ;  
 If  (  done  )   {   
 System.out.println ( "Query Executed" ) ; 
  } 


[1831]avoid constructor
By Pedro on 2006/10/05 09:42:52  Rate
Avoid usage of the constructor..since it instanciate a Boolean that is immutable that is identical to either Boolean.TRUE or Boolean.FALSE. 
 use valueOf instead.


public Boolean(String s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean booleanValue()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public int compareTo(Boolean b)
See Also:
Comparable, NullPointerException, compareTo
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public boolean equals(Object obj)
See Also:
Hashtable, Object.hashCode()
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Boolean FALSE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean getBoolean(String name)
See Also:
System.getProperty(java.lang.String, java.lang.String), System.getProperty(java.lang.String)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


[1327]Looks up a boolean system property
By Anonymous on 2005/03/04 21:19:39  Rate
Do not confuse it with Boolean.valueOf ( String ) , which converts a  
 String into a Boolean. 
  
  
 Boolean.getBoolean ( String )  looks up a system property and returns its  
 boolean value! So the expression Boolean.getBoolean ( "true" )  could  
 return false. The Java Doc says "Returns true if and only if the  
 system property named by the argument exists and is equal to the  
 string "true"." Well, it is a strange place to look up a system  
 property though. 
  
  
 


[1830]The person that let this method be called this way should be fired!
By Pedro on 2006/10/05 09:26:52  Rate
Why not called this method getSystemPropertyBoolean.. or at least something giving a hint about what is done... 
 


public int hashCode()
See Also:
Hashtable, Object.equals(java.lang.Object)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static boolean parseBoolean(String s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public String toString()
See Also:
Object
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static String toString(boolean b)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Boolean TRUE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static final Class<Boolean> TYPE
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Boolean valueOf(boolean b)
See Also:
Boolean(boolean)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  


public static Boolean valueOf(String s)
Geek's Notes:
Description  Add your codes or notes  Search More Java Examples  

Popular Tags