Commit e6e05305 authored by liaozan's avatar liaozan 🏀

boolean to int

parent 431cd096
......@@ -39,4 +39,8 @@ public enum BooleanEnum {
return Objects.equals(FALSE.value, value);
}
public static int toInt(boolean value) {
return value ? TRUE.value : FALSE.value;
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment