All Implemented Interfaces:
Serializable, Comparable<Boolean>, Constable

  • Field Summary

    Fields

    The Boolean object corresponding to the primitive value false.

    The Boolean object corresponding to the primitive value true.

    The Class object representing the primitive type boolean.

  • Constructor Summary

    Constructors

  • Method Summary

    boolean

    Returns the value of this Boolean object as a boolean primitive.

    static int

    compare(boolean x, boolean y)

    Compares two boolean values.

    int

    Compares this Boolean instance with another.

    Returns an Optional containing the nominal descriptor for this instance.

    boolean

    Returns true if and only if the argument is not null and is a Boolean object that represents the same boolean value as this object.

    static boolean

    Returns true if and only if the system property named by the argument exists and is equal to, ignoring case, the string "true".

    int

    hashCode()

    Returns a hash code for this Boolean object.

    static int

    hashCode(boolean value)

    Returns a hash code for a boolean value; compatible with Boolean.hashCode().

    static boolean

    logicalAnd(boolean a, boolean b)

    Returns the result of applying the logical AND operator to the specified boolean operands.

    static boolean

    logicalOr(boolean a, boolean b)

    Returns the result of applying the logical OR operator to the specified boolean operands.

    static boolean

    logicalXor(boolean a, boolean b)

    Returns the result of applying the logical XOR operator to the specified boolean operands.

    static boolean

    Parses the string argument as a boolean.

    toString()

    Returns a String object representing this Boolean's value.

    toString(boolean b)

    Returns a String object representing the specified boolean.

    valueOf(boolean b)

    Returns a Boolean instance representing the specified boolean value.

    Returns a Boolean with a value represented by the specified string.

  • Field Details

    • TRUE

    • FALSE

    • TYPE

  • Constructor Details

    • Boolean

    • Boolean

  • Method Details

    • parseBoolean

    • booleanValue

    • valueOf

    • valueOf

    • toString

    • toString

    • hashCode

    • hashCode

    • equals

    • getBoolean

    • compareTo

    • compare

    • logicalAnd

    • logicalOr

    • logicalXor

    • describeConstable