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

org.openqa.selenium.devtools.network.model.MonotonicTime 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-rc-1
Show newest version
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();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy