AdTechIdentifier


class AdTechIdentifier


An Identifier representing an ad buyer or seller.

Summary

Public constructors

AdTechIdentifier(identifier: String)

Public functions

open operator Boolean
equals(other: Any?)

Compares this AdTechIdentifier to the specified object.

open Int

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

open String

Public properties

String

The identifier.

Public constructors

AdTechIdentifier

Added in 1.0.0
AdTechIdentifier(identifier: String)
Parameters
identifier: String

The identifier.

Public functions

equals

open operator fun equals(other: Any?): Boolean

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
other: Any?

The object to compare this AdTechIdentifier against

Returns
Boolean

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

hashCode

open fun hashCode(): Int

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

open fun toString(): String
Returns
String

The identifier in String form.

Public properties

identifier

Added in 1.0.0
val identifierString

The identifier.