# SecurityPatchState.GenericStringSecurityPatchLevel

Artifact: [androidx.security:security-state](https://developer.android.com/jetpack/androidx/releases/security) [View Source](https://cs.android.com/search?q=file:androidx/security/state/SecurityPatchState.kt+class:androidx.security.state.SecurityPatchState.GenericStringSecurityPatchLevel) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/security#1.0.0)

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel "View this page in Java")


```
class SecurityPatchState.GenericStringSecurityPatchLevel : SecurityPatchState.SecurityPatchLevel
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.security.state.SecurityPatchState.SecurityPatchLevel](https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel) ||
|   | ↳ | [androidx.security.state.SecurityPatchState.GenericStringSecurityPatchLevel](https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel) |

*** ** * ** ***

Implementation of `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a simple string patch level.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel#GenericStringSecurityPatchLevel(kotlin.String)(patchLevel: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel#compareTo(androidx.security.state.SecurityPatchState.SecurityPatchLevel)(other: https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.SecurityPatchLevel)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel#toString()()` |

## Public constructors

### GenericStringSecurityPatchLevel

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/security#1.0.0)

```
GenericStringSecurityPatchLevel(patchLevel: String)
```

## Public functions

### compareTo

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/security#1.0.0)

```
open operator fun compareTo(other: SecurityPatchState.SecurityPatchLevel): Int
```

### toString

```
open fun toString(): String
```