com.hubspot.chrome.devtools.client.core.profiler.PositionTickInfo Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.profiler;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Specifies a number of samples attributed to a certain source position.
*/
public final class PositionTickInfo {
private Integer line;
private Integer ticks;
@JsonCreator
public PositionTickInfo(@JsonProperty("line") Integer line,
@JsonProperty("ticks") Integer ticks) {
this.line = line;
this.ticks = ticks;
}
public Integer getLine() {
return line;
}
public Integer getTicks() {
return ticks;
}
public static PositionTickInfo.Builder builder() {
return new PositionTickInfo.Builder();
}
public static final class Builder {
private Integer line;
private Integer ticks;
private Builder() {
}
public PositionTickInfo.Builder setLine(Integer line) {
this.line = line;
return this;
}
public PositionTickInfo.Builder setTicks(Integer ticks) {
this.ticks = ticks;
return this;
}
public PositionTickInfo build() {
return new PositionTickInfo(line, ticks);
}
}
}