Package valorless.valorlessutils.utils
Class Utils.Bool
java.lang.Object
valorless.valorlessutils.utils.Utils.Bool
- Enclosing class:
- Utils
Utility class for converting between Boolean and Integer values.
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Constructor Details- 
Boolpublic Bool()
 
- 
- 
Method Details- 
FromValueConverts an Integer value to a Boolean.- Parameters:
- value- The Integer value to convert.
- Returns:
- The corresponding Boolean value (true for 1, false for 0).
 
- 
ToValueConverts a Boolean value to an Integer.- Parameters:
- bool- The Boolean value to convert.
- Returns:
- The corresponding Integer value (1 for true, 0 for false).
 
 
-