类 BooleanUtil
java.lang.Object
tech.mhuang.pacebox.core.util.BooleanUtil
boolean工具类
- 从以下版本开始:
- 1.1.2
- 作者:
- mhuang
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static bytetoByte(boolean value) boolean值转为bytestatic BytetoByteObj(boolean value) boolean值转为Bytestatic chartoChar(boolean value) boolean值转为charstatic CharactertoCharacter(boolean value) boolean值转为characterstatic inttoInt(boolean value) boolean转intstatic IntegertoInteger(boolean value) boolean转integer
-
构造器详细资料
-
BooleanUtil
public BooleanUtil()
-
-
方法详细资料
-
toInt
public static int toInt(boolean value) boolean转int- 参数:
value- boolean- 返回:
- int
-
toInteger
boolean转integer- 参数:
value- boolean- 返回:
- integer
-
toChar
public static char toChar(boolean value) boolean值转为char- 参数:
value- boolean- 返回:
- char
-
toCharacter
boolean值转为character- 参数:
value- boolean- 返回:
- character
-
toByte
public static byte toByte(boolean value) boolean值转为byte- 参数:
value- boolean- 返回:
- byte
-
toByteObj
boolean值转为Byte- 参数:
value- boolean- 返回:
- Byte
-