Interface JsonValueBase<JVB extends JsonValueBase<JVB>>

    • Method Detail

      • isObject

        boolean isObject()
        Checks if this is represented as a JSON object.
        Returns:
        true if this is represented as a JSON object, false otherwise
      • isArray

        boolean isArray()
        Checks if this is represented as a JSON array.
        Returns:
        true if this is represented as a JSON array, false otherwise
      • isString

        boolean isString()
        Checks if this is represented as a JSON string.
        Returns:
        true if this is represented as a JSON string, false otherwise
      • isBoolean

        boolean isBoolean()
        Checks if this is represented as a JSON boolean.
        Returns:
        true if this is represented as a JSON boolean, false otherwise
      • isNumber

        boolean isNumber()
        Checks if this is represented as a JSON number.
        Returns:
        true if this is represented as a JSON number, false otherwise
      • isNull

        boolean isNull()
        Checks if this is represented as a JSON null.
        Returns:
        true if this is represented as a JSON null, false otherwise
      • asObject

        JsonObjectBase<JVB> asObject()
        Converts this to a JSON object wrapper.
        Returns:
        a JSON object wrapper
      • asArray

        JsonArrayBase<JVB> asArray()
        Converts this to a JSON array wrapper.
        Returns:
        a JSON array wrapper
      • asValue

        JsonValueBase<JVB> asValue()
        Converts this to a JSON value wrapper.
        Returns:
        a JSON value wrapper
      • asBoolean

        boolean asBoolean()
        Converts this to a Java boolean.
        Returns:
        a boolean
      • asInt

        int asInt()
        Converts this to a Java int.
        Returns:
        an int
      • asLong

        long asLong()
        Converts this to a Java long.
        Returns:
        a long
      • asDouble

        double asDouble()
        Converts this to a Java double.
        Returns:
        a double
      • asNull

        default Object asNull()
        Converts this to a Java null.
        Returns:
        a null