com.hubspot.chrome.devtools.client.core.indexeddb.Key Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.indexeddb;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Key.
*/
public final class Key {
private String type;
private Number number;
private String string;
private Number date;
private List array;
@JsonCreator
public Key(@JsonProperty("type") String type, @JsonProperty("number") Number number,
@JsonProperty("string") String string, @JsonProperty("date") Number date,
@JsonProperty("array") List array) {
this.type = type;
this.number = number;
this.string = string;
this.date = date;
this.array = array;
}
public String getType() {
return type;
}
public Number getNumber() {
return number;
}
public String getString() {
return string;
}
public Number getDate() {
return date;
}
public List getArray() {
return array;
}
public static Key.Builder builder() {
return new Key.Builder();
}
public static final class Builder {
private String type;
private Number number;
private String string;
private Number date;
private List array;
private Builder() {
}
public Key.Builder setType(String type) {
this.type = type;
return this;
}
public Key.Builder setNumber(Number number) {
this.number = number;
return this;
}
public Key.Builder setString(String string) {
this.string = string;
return this;
}
public Key.Builder setDate(Number date) {
this.date = date;
return this;
}
public Key.Builder setArray(List array) {
this.array = array;
return this;
}
public Key build() {
return new Key(type, number, string, date, array);
}
}
}