Popularity


public final class Popularity


An object representing a popularity on a content.

Summary

Nested types

public final class Popularity.Builder

Builder class for Popularity.

Public fields

final String
final Long
final List<Image>

Public methods

String

Returns the popularity count. e.g. “3.7 M”

Long

Returns the count value of the popularity.

Optional<String>

Returns the popularity label. e.g. “Likes”, "Followers", "Reviews".

List<Image>

Returns the images/icon that represent the popularity label.

Public fields

count

public final String count

countValue

public final Long countValue

visuals

public final List<Imagevisuals

Public methods

getCount

public String getCount()

Returns the popularity count. e.g. “3.7 M”

getCountValue

public Long getCountValue()

Returns the count value of the popularity.

getLabel

public Optional<StringgetLabel()

Returns the popularity label. e.g. “Likes”, "Followers", "Reviews".

getVisuals

public List<ImagegetVisuals()

Returns the images/icon that represent the popularity label.