Class JSONBoolean

java.lang.Object
org.h2.util.json.JSONValue
org.h2.util.json.JSONBoolean

public class JSONBoolean extends JSONValue
JSON boolean.
  • Field Details

    • FALSE

      public static final JSONBoolean FALSE
      false value.
    • TRUE

      public static final JSONBoolean TRUE
      true value.
    • value

      private final boolean value
  • Constructor Details

    • JSONBoolean

      private JSONBoolean(boolean value)
  • Method Details

    • addTo

      public void addTo(JSONTarget<?> target)
      Description copied from class: JSONValue
      Appends this value to the specified target.
      Specified by:
      addTo in class JSONValue
      Parameters:
      target - the target
    • getBoolean

      public boolean getBoolean()
      Returns the value.
      Returns:
      the value