# ResValue

# ResValue

<br />

```
public final class ResValue implements Serializable
```

<br />

*** ** * ** ***

Resource to be generated by the build system.

## Summary

|                                                                                                                                                            ### Nested types                                                                                                                                                            |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public interface `[ResValue.Key](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/ResValue.Key)` extends `[Serializable](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/Serializable.html) a generated resource is identified by its type+name as you can create |

|                                                                                                                                                                                                                                ### Public constructors                                                                                                                                                                                                                                 |
|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [ResValue](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/ResValue#ResValue(kotlin.String,kotlin.String))`(@`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` value, `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)` comment)` |

|                                                                                                ### Public methods                                                                                                |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `final `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html)                                                                                                             | [getComment](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/ResValue#getComment())`()` Optional comment.  |
| `final @`[NonNull](https://developer.android.com/reference/tools/gradle-api/8.3/null/androidx/annotation/NonNull)` `[String](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html) | [getValue](https://developer.android.com/reference/tools/gradle-api/8.3/null/com/android/build/api/variant/ResValue#getValue())`()` value for the resource |

## Public constructors

### ResValue

```
public ResValue(@NonNull String value, String comment)
```  

## Public methods

### getComment

```
public final String getComment()
```

Optional comment.  

### getValue

```
public final @NonNull String getValue()
```

value for the resource