org.openqa.selenium.devtools.v90.domsnapshot.model.StringIndex Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools-v90 Show documentation
Show all versions of selenium-devtools-v90 Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
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();
}
}