Package org.rapidcontext.util
Class ValueUtil
java.lang.Object
org.rapidcontext.util.ValueUtil
A set of utility methods for simple value conversions.
- Version:
- 1.0
-
Method Summary
-
Method Details
-
isOn
Checks if a string value represents an "on" value. Typical values are "1", "on", "true", etc (case-insensitive).- Parameters:
str
- the value to check- Returns:
- true if the string matches an "on" value, or false otherwise
-
isOff
Checks if a string value represents an "off" value. Typical values are "0", "off", "false", etc (case-insensitive).- Parameters:
str
- the value to check- Returns:
- true if the string matches an "off" value, or false otherwise
-