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
   public Boolean(boolean value);

   // public instance methods
   public boolean booleanValue();
   public boolean equals(Object obj);
   public int hashCode();
   public String toString();

}

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.