# SecurityPatchState.SecurityPatchLevel

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.SecurityPatchLevel) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/security#1.0.0)

*** ** * ** ***


```
public abstract class SecurityPatchState.SecurityPatchLevel implements Comparable<@NonNull SecurityPatchState.SecurityPatchLevel>
```

<br />

Known direct subclasses [SecurityPatchState.DateBasedSecurityPatchLevel](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.DateBasedSecurityPatchLevel), [SecurityPatchState.GenericStringSecurityPatchLevel](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.GenericStringSecurityPatchLevel), [SecurityPatchState.VersionedSecurityPatchLevel](https://developer.android.com/reference/androidx/security/state/SecurityPatchState.VersionedSecurityPatchLevel)

|---|---|
| `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.DateBasedSecurityPatchLevel` | Implementation of `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a date-based patch level. |
| `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. |
| `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.VersionedSecurityPatchLevel` | Implementation of `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel` for a versioned patch level. |

*** ** * ** ***

Abstract base class representing a security patch level.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel#SecurityPatchLevel()()` |

| ### Public methods |
|---|---|
| `abstract @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.SecurityPatchLevel#toString()()` |

### Inherited methods

From [kotlin.Comparable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-comparable/index.html) `abstract int` `https://developer.android.com/reference/java/lang/Comparable.html#compareTo(T)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/security/state/SecurityPatchState.SecurityPatchLevel other)`

## Public constructors

### SecurityPatchLevel

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

```
public SecurityPatchLevel()
```

## Public methods

### toString

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

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