Popularity.Builder


public final class Popularity.Builder


Builder class for Popularity.

Summary

Public constructors

Public methods

Popularity.Builder

Add an image/icon representing the popularity label.

Popularity.Builder

Add the images/icon representing the popularity label.

Popularity
Popularity.Builder

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

Popularity.Builder

Sets the count value of the popularity.

Popularity.Builder

Sets the popularity label. e.g. “Likes”

Public constructors

Builder

public Builder()

Public methods

addVisual

@CanIgnoreReturnValue
public Popularity.Builder addVisual(Image image)

Add an image/icon representing the popularity label.

Optional.

If not provided, label must be set.

addVisuals

@CanIgnoreReturnValue
public Popularity.Builder addVisuals(List<Image> images)

Add the images/icon representing the popularity label.

Optional.

build

public Popularity build()

setCount

@CanIgnoreReturnValue
public Popularity.Builder setCount(String count)

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

Required.

setCountValue

@CanIgnoreReturnValue
public Popularity.Builder setCountValue(long countValue)

Sets the count value of the popularity.

Optional.

setLabel

@CanIgnoreReturnValue
public Popularity.Builder setLabel(String label)

Sets the popularity label. e.g. “Likes”

Optional.

If not provided, visuals must be set.