Name
java.lang.Boolean
Synopsis
This class is a smaller counterpart to the J2SE
Boolean
class. It provides an object wrapper
around the boolean
primitive data type. The
boolean
is the object’s only field, which is
set by the constructor and accessed using the
booleanValue()
method.
public final classBoolean
{ // public constructor publicBoolean
(boolean value); // public instance methods public booleanbooleanValue
(); public booleanequals
(Object obj); public inthashCode
(); public StringtoString
(); }
Get Wireless Java now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.