# 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)

*** ** * ** ***


```
public final class SecurityPatchState.GenericStringSecurityPatchLevel extends SecurityPatchState.SecurityPatchLevel
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [androidx.security.state.SecurityPatchState.SecurityPatchLevel](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel) ||
|   | ↳ | [androidx.security.state.SecurityPatchState.GenericStringSecurityPatchLevel](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel) |

*** ** * ** ***

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

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel#GenericStringSecurityPatchLevel(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html patchLevel)` |

| ### Public methods |
|---|---|
| `int` | `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel#compareTo(androidx.security.state.SecurityPatchState.SecurityPatchLevel)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel other)` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/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)

```
public GenericStringSecurityPatchLevel(@NonNull String patchLevel)
```

## Public methods

### compareTo

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

```
public int compareTo(@NonNull SecurityPatchState.SecurityPatchLevel other)
```

### toString

```
public @NonNull String toString()
```