mirror of https://github.com/alibaba/easyexcel
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
467 B
28 lines
467 B
package com.alibaba.excel.util; |
|
|
|
/** |
|
* boolean util |
|
* |
|
* @author Jiaju Zhuang |
|
*/ |
|
public class BooleanUtils { |
|
|
|
private static final String TRUE_NUMBER = "1"; |
|
|
|
private BooleanUtils() {} |
|
|
|
/** |
|
* String to boolean |
|
* |
|
* @param str |
|
* @return |
|
*/ |
|
public static Boolean valueOf(String str) { |
|
if (TRUE_NUMBER.equals(str)) { |
|
return Boolean.TRUE; |
|
} else { |
|
return Boolean.FALSE; |
|
} |
|
} |
|
|
|
}
|
|
|