UserAgentMetadata.BrandVersion
public final class UserAgentMetadata.BrandVersion
Class that holds brand name, major version and full version. Brand name and major version used to generated user-agent client hint sec-cu-ua. Brand name and full version used to generated user-agent client hint sec-ch-ua-full-version-list.
This class is functionally equivalent to NavigatorUABrandVersion.
Summary
Nested types |
|---|
public final class UserAgentMetadata.BrandVersion.BuilderBuilder used to create |
Public methods |
|
|---|---|
boolean |
Two BrandVersion objects are equal only if brand name, major version and full version are equal. |
@NonNull String |
getBrand()Returns the brand of user-agent brand version tuple. |
@NonNull String |
Returns the full version of user-agent brand version tuple. |
@NonNull String |
Returns the major version of user-agent brand version tuple. |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
equals
public boolean equals(Object o)
Two BrandVersion objects are equal only if brand name, major version and full version are equal.
getBrand
public @NonNull String getBrand()
Returns the brand of user-agent brand version tuple.
getFullVersion
public @NonNull String getFullVersion()
Returns the full version of user-agent brand version tuple.
getMajorVersion
public @NonNull String getMajorVersion()
Returns the major version of user-agent brand version tuple.