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

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

package org.openqa.selenium.devtools.v90.domsnapshot.model;

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

public class RareIntegerData {

    private final java.util.List index;

    private final java.util.List value;

    public RareIntegerData(java.util.List index, java.util.List value) {
        this.index = java.util.Objects.requireNonNull(index, "index is required");
        this.value = java.util.Objects.requireNonNull(value, "value is required");
    }

    public java.util.List getIndex() {
        return index;
    }

    public java.util.List getValue() {
        return value;
    }

    private static RareIntegerData fromJson(JsonInput input) {
        java.util.List index = null;
        java.util.List value = null;
        input.beginObject();
        while (input.hasNext()) {
            switch(input.nextName()) {
                case "index":
                    index = input.read(new com.google.common.reflect.TypeToken>() {
                    }.getType());
                    break;
                case "value":
                    value = input.read(new com.google.common.reflect.TypeToken>() {
                    }.getType());
                    break;
                default:
                    input.skipValue();
                    break;
            }
        }
        input.endObject();
        return new RareIntegerData(index, value);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy