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

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

Added in 1.9.0
public @NonNull StringgetBrand()

Returns the brand of user-agent brand version tuple.

getFullVersion

Added in 1.9.0
public @NonNull StringgetFullVersion()

Returns the full version of user-agent brand version tuple.

getMajorVersion

Added in 1.9.0
public @NonNull StringgetMajorVersion()

Returns the major version of user-agent brand version tuple.

hashCode

public int hashCode()

toString

public @NonNull StringtoString()