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

org.openqa.selenium.devtools.v88.runtime.model.ExecutionContextId Maven / Gradle / Ivy

package org.openqa.selenium.devtools.v88.runtime.model;

import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;

/**
 * Id of an execution context.
 */
public class ExecutionContextId {

    private final java.lang.Integer executionContextId;

    public ExecutionContextId(java.lang.Integer executionContextId) {
        this.executionContextId = java.util.Objects.requireNonNull(executionContextId, "Missing value for ExecutionContextId");
    }

    private static ExecutionContextId fromJson(JsonInput input) {
        return new ExecutionContextId(input.nextNumber().intValue());
    }

    public Integer toJson() {
        return executionContextId;
    }

    public String toString() {
        return executionContextId.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy