Rating.Builder

public final class Rating.Builder


Builder class for Rating.

Summary

Public constructors

Public methods

Rating
Rating.Builder

Sets the count of the rating. e.g. 1.2k, 12k etc

Rating.Builder

Sets the count of the rating.

Rating.Builder

Sets the current value of the rating.

Rating.Builder

Sets the max value of the rating.

Public constructors

Builder

public Builder()

Public methods

build

public Rating build()

setCount

@CanIgnoreReturnValue
public Rating.Builder setCount(String count)

Sets the count of the rating. e.g. 1.2k, 12k etc

Optional.

setCountValue

@CanIgnoreReturnValue
public Rating.Builder setCountValue(long countValue)

Sets the count of the rating.

Optional.

setCurrentValue

@CanIgnoreReturnValue
public Rating.Builder setCurrentValue(double currentValue)

Sets the current value of the rating.

Required.

setMaxValue

@CanIgnoreReturnValue
public Rating.Builder setMaxValue(double maxValue)

Sets the max value of the rating.

Required.