TemplateInfo


@CarProtocol
public final class TemplateInfo


Stores information about Template returned from a .

This class is for use by host implementations and not by apps.

Summary

Public constructors

TemplateInfo(
    @NonNull Class<Template> templateClass,
    @NonNull String templateId
)

Constructs the info for the given template information provided.

Public methods

boolean
@NonNull Class<Template>

Returns the type of template this instance contains.

@NonNull String

Returns the ID of the template.

int

Public constructors

TemplateInfo

Added in 1.0.0
public TemplateInfo(
    @NonNull Class<Template> templateClass,
    @NonNull String templateId
)

Constructs the info for the given template information provided.

Parameters
@NonNull Class<Template> templateClass

the class of the template this info is for

@NonNull String templateId

the unique id for the template

Public methods

equals

public boolean equals(@Nullable Object other)

getTemplateClass

Added in 1.0.0
public @NonNull Class<TemplategetTemplateClass()

Returns the type of template this instance contains.

See also
TemplateInfo

getTemplateId

Added in 1.0.0
public @NonNull String getTemplateId()

Returns the ID of the template.

See also
TemplateInfo

hashCode

public int hashCode()