org.openqa.selenium.devtools.network.model.MonotonicTime Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of selenium-devtools Show documentation
Show all versions of selenium-devtools Show documentation
Selenium automates browsers. That's it! What you do with that power is entirely up to you.
package org.openqa.selenium.devtools.network.model;
import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;
/**
* Monotonically increasing time in seconds since an arbitrary point in the past.
*/
public class MonotonicTime {
private final java.lang.Number monotonicTime;
public MonotonicTime(java.lang.Number monotonicTime) {
this.monotonicTime = java.util.Objects.requireNonNull(monotonicTime, "Missing value for MonotonicTime");
}
private static MonotonicTime fromJson(JsonInput input) {
return new MonotonicTime(input.nextNumber());
}
public String toJson() {
return monotonicTime.toString();
}
public String toString() {
return monotonicTime.toString();
}
}