public class Booleans extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
and(boolean... array)
并且
|
static Boolean |
and(Boolean... array)
并且
|
static int |
compare(boolean x,
boolean y)
比较
|
static boolean |
isFalse(Boolean bool)
是否为false
|
static boolean |
isNotFalse(Boolean bool)
是否不为false
|
static boolean |
isNotTrue(Boolean bool)
是否不为true
|
static boolean |
isTrue(Boolean bool)
是否为true
|
static Boolean |
negate(Boolean bool)
获取相反值
|
static boolean |
or(boolean... array)
或者
|
static Boolean |
or(Boolean... array)
或者
|
static boolean |
toBoolean(Boolean bool)
Boolean -> boolean
|
static boolean |
toBoolean(int value)
int -> boolean
|
static String |
toString(boolean bool,
String trueString,
String falseString) |
public static boolean isTrue(Boolean bool)
bool
- boolpublic static boolean isNotTrue(Boolean bool)
bool
- boolpublic static boolean isFalse(Boolean bool)
bool
- boolpublic static boolean isNotFalse(Boolean bool)
bool
- boolpublic static boolean toBoolean(Boolean bool)
bool
- Booleanpublic static boolean toBoolean(int value)
value
- 0 | !0public static boolean and(boolean... array)
array
- boolean[]public static Boolean and(Boolean... array)
array
- Boolean[]public static boolean or(boolean... array)
array
- boolean[]public static Boolean or(Boolean... array)
array
- Boolean[]public static int compare(boolean x, boolean y)
x
- b1y
- b2Copyright © 2024. All rights reserved.