code: public static boolean parseBoolean(String bool, boolean defaultInt) {
          if (bool == null) {
              return defaultInt;
          } else {
              return Boolean.parseBoolean(bool);
          }
      }
docs: 字符串转布尔
  
  @param bool       数字
  @param defaultInt 默认值
  @return int