public final class Boolean extends Object implements Comparable<Boolean>, Serializable
boolean
as an object.Modifier and Type | Field and Description |
---|---|
static Boolean |
FALSE |
static Boolean |
TRUE |
static Class<Boolean> |
TYPE |
Constructor and Description |
---|
Boolean(boolean value) |
Boolean(String s) |
Modifier and Type | Method and Description |
---|---|
boolean |
booleanValue() |
static int |
compare(boolean x,
boolean y) |
int |
compareTo(Boolean b) |
boolean |
equals(Object o) |
int |
hashCode() |
static boolean |
parseBoolean(String s) |
String |
toString() |
static String |
toString(boolean x) |
static Boolean |
valueOf(boolean b) |
static Boolean |
valueOf(String s) |
public Boolean(boolean value)
public Boolean(String s)
public static int compare(boolean x, boolean y)
public static boolean parseBoolean(String s)
public static String toString(boolean x)
public static Boolean valueOf(boolean b)
public boolean booleanValue()
public int compareTo(Boolean b)
compareTo
in interface Comparable<Boolean>
Copyright © 2018. All rights reserved.