org.openqa.selenium.devtools.v90.runtime.model.Timestamp 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.runtime.model;
import org.openqa.selenium.Beta;
import org.openqa.selenium.json.JsonInput;
/**
* Number of milliseconds since epoch.
*/
public class Timestamp {
private final java.lang.Number timestamp;
public Timestamp(java.lang.Number timestamp) {
this.timestamp = java.util.Objects.requireNonNull(timestamp, "Missing value for Timestamp");
}
private static Timestamp fromJson(JsonInput input) {
return new Timestamp(input.nextNumber());
}
public String toJson() {
return timestamp.toString();
}
public String toString() {
return timestamp.toString();
}
}