All Downloads are FREE. Search and download functionalities are using the official Maven repository.

burp.api.montoya.utilities.json.JsonBooleanNode Maven / Gradle / Ivy

There is a newer version: 2024.12
Show newest version
/*
 * Copyright (c) 2022-2024. PortSwigger Ltd. All rights reserved.
 *
 * This code may be used to extend the functionality of Burp Suite Community Edition
 * and Burp Suite Professional, provided that this usage does not violate the
 * license terms for those products.
 */

package burp.api.montoya.utilities.json;

import static burp.api.montoya.internal.ObjectFactoryLocator.FACTORY;

/**
 * This interface is used to define a JSON boolean node.
 */
public interface JsonBooleanNode extends JsonNode
{
    @Override
    Boolean getValue();

    /**
     * Creates a new instance of {@link JsonBooleanNode} from the supplied boolean.
     *
     * @param value The boolean value.
     *
     * @return A new {@link JsonBooleanNode} instance.
     */
    static JsonBooleanNode jsonBooleanNode(boolean value)
    {
        return FACTORY.jsonBooleanNode(value);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy