[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/lang/Boolean.html [Back]  [Original]

Boolean (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Field Summary
  3. Constructor Summary
  4. Method Summary
  5. Field Details
    1. TRUE
    2. FALSE
    3. TYPE
  6. Constructor Details
    1. Boolean(boolean)
    2. Boolean(String)
  7. Method Details
    1. parseBoolean(String)
    2. booleanValue()
    3. valueOf(boolean)
    4. valueOf(String)
    5. toString(boolean)
    6. toString()
    7. hashCode()
    8. hashCode(boolean)
    9. equals(Object)
    10. getBoolean(String)
    11. compareTo(Boolean)
    12. compare(boolean, boolean)
    13. logicalAnd(boolean, boolean)
    14. logicalOr(boolean, boolean)
    15. logicalXor(boolean, boolean)
    16. describeConstable()

Class Boolean

java.lang.Object
java.lang.Boolean
All Implemented Interfaces:
Serializable, Comparable<Boolean>, Constable

public final class Boolean extends Object implements Serializable, Comparable<Boolean>, Constable
The Boolean class is the wrapper class for values of the primitive type boolean. An object of type Boolean contains a single field whose type is boolean.

In addition, this class provides many methods for converting a boolean to a String and a String to a boolean, as well as other constants and methods useful when dealing with a boolean.

This is a value-based class; programmers should treat instances that are equal as interchangeable and should not use instances for synchronization, or unpredictable behavior may occur. For example, in a future release, synchronization may fail.

Since:
1.0
See Also:


Web Proxy Viewer  |  New URL  |  Original Page