HarmSeverity

public enum HarmSeverity extends Enum


Represents the severity of a HarmCategory being applicable in a SafetyRating.

Summary

Enum Values

HIGH

High level of harm severity.

LOW

Low level of harm severity.

MEDIUM

Medium level of harm severity.

NEGLIGIBLE

Severity for harm is negligible.

UNKNOWN

A new and not yet supported value.

UNSPECIFIED

Severity for harm is unspecified.

Public methods

final @NonNull HarmSeverity

Returns the enum constant of this type with the specified name.

final @NonNull HarmSeverity[]

Returns an array containing the constants of this enum type, in the order they're declared.

Enum Values

HIGH

HarmSeverity HarmSeverity.HIGH

High level of harm severity.

LOW

HarmSeverity HarmSeverity.LOW

Low level of harm severity.

MEDIUM

HarmSeverity HarmSeverity.MEDIUM

Medium level of harm severity.

NEGLIGIBLE

HarmSeverity HarmSeverity.NEGLIGIBLE

Severity for harm is negligible.

UNKNOWN

HarmSeverity HarmSeverity.UNKNOWN

A new and not yet supported value.

UNSPECIFIED

HarmSeverity HarmSeverity.UNSPECIFIED

Severity for harm is unspecified.

Public methods

valueOf

public final @NonNull HarmSeverity valueOf(@NonNull String value)

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Throws
kotlin.IllegalArgumentException kotlin.IllegalArgumentException

if this enum type has no constant with the specified name

values

public final @NonNull HarmSeverity[] values()

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.