com.hubspot.chrome.devtools.client.core.css.PlatformFontUsage Maven / Gradle / Ivy
package com.hubspot.chrome.devtools.client.core.css;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Information about amount of glyphs that were rendered with given font.
*/
public final class PlatformFontUsage {
private String familyName;
private Boolean isCustomFont;
private Number glyphCount;
@JsonCreator
public PlatformFontUsage(@JsonProperty("familyName") String familyName,
@JsonProperty("isCustomFont") Boolean isCustomFont,
@JsonProperty("glyphCount") Number glyphCount) {
this.familyName = familyName;
this.isCustomFont = isCustomFont;
this.glyphCount = glyphCount;
}
public String getFamilyName() {
return familyName;
}
public Boolean getIsCustomFont() {
return isCustomFont;
}
public Number getGlyphCount() {
return glyphCount;
}
public static PlatformFontUsage.Builder builder() {
return new PlatformFontUsage.Builder();
}
public static final class Builder {
private String familyName;
private Boolean isCustomFont;
private Number glyphCount;
private Builder() {
}
public PlatformFontUsage.Builder setFamilyName(String familyName) {
this.familyName = familyName;
return this;
}
public PlatformFontUsage.Builder setIsCustomFont(Boolean isCustomFont) {
this.isCustomFont = isCustomFont;
return this;
}
public PlatformFontUsage.Builder setGlyphCount(Number glyphCount) {
this.glyphCount = glyphCount;
return this;
}
public PlatformFontUsage build() {
return new PlatformFontUsage(familyName, isCustomFont, glyphCount);
}
}
}