# Rating

# Rating

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/Rating "View this page in Kotlin")\|Java  

<br />

```
public final class Rating
```

<br />

*** ** * ** ***

An object representing a rating.

## Summary

|                                                                                                                        ### Nested types                                                                                                                        |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[Rating.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating.Builder) Builder class for[Rating](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating). |

|                              ### Public fields                              |
|-----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|
| `final `[Long](https://developer.android.com/reference/java/lang/Long.html) | [countValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#countValue())     |
| `final double`                                                              | [currentValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#currentValue()) |
| `final double`                                                              | [maxValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#maxValue())         |

|                                                                           ### Public methods                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [getCount](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#getCount())`()` Returns the count of the rating.                       |
| [Long](https://developer.android.com/reference/java/lang/Long.html)                                                                                                    | [getCountValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#getCountValue())`()` Returns the count of the rating.             |
| `double`                                                                                                                                                               | [getCurrentValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#getCurrentValue())`()` Returns the current value of the rating. |
| `double`                                                                                                                                                               | [getMaxValue](https://developer.android.com/reference/com/google/android/engage/common/datamodel/Rating#getMaxValue())`()` 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<String> getCount()
```

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.