@Document(name = "builtin:SportsTeam")
public class SportsTeam extends SportsOrganization


AppSearch document representing a SportsTeam entity.

Summary

Nested types

Public methods

@Nullable String

Returns the formatted record of the sports team. eg: "10 - 5", "10 - 5 (3 - 2)", "10 - 5 (3 - 2) - 1 OT" depending on the sport.

long

Returns the number of losses of the sports team.

long

Returns the number of overtime losses of the sports team.

long

Returns the number of overtime wins of the sports team.

long

Returns the number of ties of the sports team.

long

Returns the number of wins of the sports team.

Inherited methods

From androidx.appsearch.builtintypes.Organization
@Nullable ImageObject

Returns the logo of the organization, if set.

From androidx.appsearch.builtintypes.SportsOrganization
@Nullable Color

Returns the accent colors of the sports organization as a Color, if set.

@NonNull String

Returns the sport of the sports organization, if set.

From androidx.appsearch.builtintypes.Thing
@NonNull List<String>

Returns an unmodifiable list of aliases, if any, for this item.

long

Returns the creation timestamp, in milliseconds since Unix epoch, of this item.

@Nullable String

Returns a description of this item.

int

Returns the intrinsic score (or importance) of this item.

long

Returns the time-to-live timestamp, in milliseconds since getCreationTimestampMillis, for this item.

@NonNull String

Returns the unique identifier for this item.

@Nullable String

Returns the URL for an image of this item.

@Nullable String

Returns the name of this item.

@NonNull String

Returns the namespace (or logical grouping) for this item.

@NonNull List<PotentialAction>

Returns the actions that can be taken on this object.

@Nullable String

Returns the deeplink URL of this item.

Public methods

getFormattedRecord

Added in 1.2.0-alpha01
public @Nullable String getFormattedRecord()

Returns the formatted record of the sports team. eg: "10 - 5", "10 - 5 (3 - 2)", "10 - 5 (3 - 2) - 1 OT" depending on the sport.

getLosses

Added in 1.2.0-alpha01
public long getLosses()

Returns the number of losses of the sports team.

getOvertimeLosses

Added in 1.2.0-alpha01
public long getOvertimeLosses()

Returns the number of overtime losses of the sports team.

getOvertimeWins

Added in 1.2.0-alpha01
public long getOvertimeWins()

Returns the number of overtime wins of the sports team.

getTies

Added in 1.2.0-alpha01
public long getTies()

Returns the number of ties of the sports team.

getWins

Added in 1.2.0-alpha01
public long getWins()

Returns the number of wins of the sports team.