com.hubspot.chrome.devtools.client.core.css.MediaQuery Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
/**
* Media query descriptor.
*/
public final class MediaQuery {
private List expressions;
private Boolean active;
@JsonCreator
public MediaQuery(@JsonProperty("expressions") List expressions,
@JsonProperty("active") Boolean active) {
this.expressions = expressions;
this.active = active;
}
public List getExpressions() {
return expressions;
}
public Boolean getActive() {
return active;
}
public static MediaQuery.Builder builder() {
return new MediaQuery.Builder();
}
public static final class Builder {
private List expressions;
private Boolean active;
private Builder() {
}
public MediaQuery.Builder setExpressions(List expressions) {
this.expressions = expressions;
return this;
}
public MediaQuery.Builder setActive(Boolean active) {
this.active = active;
return this;
}
public MediaQuery build() {
return new MediaQuery(expressions, active);
}
}
}