类 BooleanUtil

java.lang.Object
tech.mhuang.pacebox.core.util.BooleanUtil

public class BooleanUtil extends Object
boolean工具类
从以下版本开始:
1.1.2
作者:
mhuang
  • 构造器详细资料

    • BooleanUtil

      public BooleanUtil()
  • 方法详细资料

    • toInt

      public static int toInt(boolean value)
      boolean转int
      参数:
      value - boolean
      返回:
      int
    • toInteger

      public static Integer toInteger(boolean value)
      boolean转integer
      参数:
      value - boolean
      返回:
      integer
    • toChar

      public static char toChar(boolean value)
      boolean值转为char
      参数:
      value - boolean
      返回:
      char
    • toCharacter

      public static Character toCharacter(boolean value)
      boolean值转为character
      参数:
      value - boolean
      返回:
      character
    • toByte

      public static byte toByte(boolean value)
      boolean值转为byte
      参数:
      value - boolean
      返回:
      byte
    • toByteObj

      public static Byte toByteObj(boolean value)
      boolean值转为Byte
      参数:
      value - boolean
      返回:
      Byte