Rating

public final class Rating


An object representing a rating.

Summary

Nested types

public final class Rating.Builder

Builder class for Rating.

Public fields

final Long
final double
final double

Public methods

Optional<String>

Returns the count of the rating.

Long

Returns the count of the rating.

double

Returns the current value of the rating.

double

Returns the max value of the rating.

Public fields

countValue

public final Long countValue

currentValue

public final double currentValue

maxValue

public final double maxValue

Public methods

getCount

public Optional<StringgetCount()

Returns the count of the rating.

getCountValue

public Long getCountValue()

Returns the count of the rating.

getCurrentValue

public double getCurrentValue()

Returns the current value of the rating.

getMaxValue

public double getMaxValue()

Returns the max value of the rating.