🔨 查询隐藏文件.

This commit is contained in:
lijiahang
2024-02-09 23:57:44 +08:00
parent 3ff67204ab
commit 8f8858fda0
6 changed files with 35 additions and 11 deletions

View File

@@ -28,6 +28,15 @@ public enum BooleanBit {
private final Integer value;
/**
* 是否为布尔值
*
* @return boolean
*/
public boolean booleanValue() {
return this == TRUE;
}
public static BooleanBit of(boolean value) {
return value ? TRUE : FALSE;
}
@@ -44,4 +53,14 @@ public enum BooleanBit {
return null;
}
/**
* 转为布尔值
*
* @param value value
* @return boolean
*/
public static boolean toBoolean(Integer value) {
return TRUE.value.equals(value);
}
}