Class ValueUtil

java.lang.Object
org.rapidcontext.util.ValueUtil

public final class ValueUtil extends Object
A set of utility methods for simple value conversions.
Version:
1.0
  • Method Details

    • isOn

      public static boolean isOn(String str)
      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

      public static boolean isOff(String str)
      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