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

Builder used to create BrandVersion objects.

Public methods

boolean

Two BrandVersion objects are equal only if brand name, major version and full version are equal.

@NonNull String

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
@NonNull String

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 String getBrand()

Returns the brand of user-agent brand version tuple.

getFullVersion

Added in 1.9.0
public @NonNull String getFullVersion()

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

getMajorVersion

Added in 1.9.0
public @NonNull String getMajorVersion()

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

hashCode

public int hashCode()

toString

public @NonNull String toString()