com.hubspot.chrome.devtools.client.core.css.PseudoElementMatches Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.hubspot.chrome.devtools.client.core.dom.PseudoType;
import java.util.List;
/**
* CSS rule collection for a single pseudo style.
*/
public final class PseudoElementMatches {
private PseudoType pseudoType;
private List matches;
@JsonCreator
public PseudoElementMatches(@JsonProperty("pseudoType") PseudoType pseudoType,
@JsonProperty("matches") List matches) {
this.pseudoType = pseudoType;
this.matches = matches;
}
public PseudoType getPseudoType() {
return pseudoType;
}
public List getMatches() {
return matches;
}
public static PseudoElementMatches.Builder builder() {
return new PseudoElementMatches.Builder();
}
public static final class Builder {
private PseudoType pseudoType;
private List matches;
private Builder() {
}
public PseudoElementMatches.Builder setPseudoType(PseudoType pseudoType) {
this.pseudoType = pseudoType;
return this;
}
public PseudoElementMatches.Builder setMatches(List matches) {
this.matches = matches;
return this;
}
public PseudoElementMatches build() {
return new PseudoElementMatches(pseudoType, matches);
}
}
}