com.hubspot.chrome.devtools.client.core.css.Value Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Data for a simple selector (these are delimited by commas in a selector list).
*/
public final class Value {
private String text;
private SourceRange range;
@JsonCreator
public Value(@JsonProperty("text") String text, @JsonProperty("range") SourceRange range) {
this.text = text;
this.range = range;
}
public String getText() {
return text;
}
public SourceRange getRange() {
return range;
}
public static Value.Builder builder() {
return new Value.Builder();
}
public static final class Builder {
private String text;
private SourceRange range;
private Builder() {
}
public Value.Builder setText(String text) {
this.text = text;
return this;
}
public Value.Builder setRange(SourceRange range) {
this.range = range;
return this;
}
public Value build() {
return new Value(text, range);
}
}
}