com.hubspot.chrome.devtools.client.core.profiler.CoverageRange Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.profiler;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Coverage data for a source range.
*/
public final class CoverageRange {
private Integer startOffset;
private Integer endOffset;
private Integer count;
@JsonCreator
public CoverageRange(@JsonProperty("startOffset") Integer startOffset,
@JsonProperty("endOffset") Integer endOffset, @JsonProperty("count") Integer count) {
this.startOffset = startOffset;
this.endOffset = endOffset;
this.count = count;
}
public Integer getStartOffset() {
return startOffset;
}
public Integer getEndOffset() {
return endOffset;
}
public Integer getCount() {
return count;
}
public static CoverageRange.Builder builder() {
return new CoverageRange.Builder();
}
public static final class Builder {
private Integer startOffset;
private Integer endOffset;
private Integer count;
private Builder() {
}
public CoverageRange.Builder setStartOffset(Integer startOffset) {
this.startOffset = startOffset;
return this;
}
public CoverageRange.Builder setEndOffset(Integer endOffset) {
this.endOffset = endOffset;
return this;
}
public CoverageRange.Builder setCount(Integer count) {
this.count = count;
return this;
}
public CoverageRange build() {
return new CoverageRange(startOffset, endOffset, count);
}
}
}