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

org.openqa.selenium.devtools.v90.domsnapshot.model.StringIndex Maven / Gradle / Ivy

Go to download

Selenium automates browsers. That's it! What you do with that power is entirely up to you.

There is a newer version: 4.0.0-beta-4
Show newest version
package org.openqa.selenium.devtools.v90.domsnapshot.model;

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

/**
 * Index of the string in the strings table.
 */
public class StringIndex {

    private final java.lang.Integer stringIndex;

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

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

    public Integer toJson() {
        return stringIndex;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy