AdTechIdentifier


public final class AdTechIdentifier


An Identifier representing an ad buyer or seller.

Summary

Public constructors

Public methods

boolean
equals(Object other)

Compares this AdTechIdentifier to the specified object.

final @NonNull String

The identifier.

int

Returns a hash code corresponding to the string representation of this class obtained by calling .toString.

@NonNull String

Public constructors

AdTechIdentifier

Added in 1.0.0
public AdTechIdentifier(@NonNull String identifier)
Parameters
@NonNull String identifier

The identifier.

Public methods

equals

public boolean equals(Object other)

Compares this AdTechIdentifier to the specified object. The result is true if and only if the argument is not null and the identifier property of the two objects are equal. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could be not equal if the String representations of the objects was not equal.

Parameters
Object other

The object to compare this AdTechIdentifier against

Returns
boolean

true if the given object represents an AdTechIdentifier equivalent to this AdTechIdentifier, false otherwise

getIdentifier

Added in 1.0.0
public final @NonNull String getIdentifier()

The identifier.

hashCode

public int hashCode()

Returns a hash code corresponding to the string representation of this class obtained by calling .toString. Note that this method will not perform any eTLD+1 normalization so two AdTechIdentifier objects with the same eTLD+1 could have different hash codes if the underlying string representation was different.

Returns
int

a hash code value for this object.

toString

public @NonNull String toString()
Returns
@NonNull String

The identifier in String form.