HarmProbability

public enum HarmProbability extends Enum


Represents the probability that some HarmCategory is applicable in a SafetyRating.

Summary

Enum Values

HIGH

Probability for harm is high.

LOW

Probability for harm is low.

MEDIUM

Probability for harm is medium.

NEGLIGIBLE

Probability for harm is negligible.

UNKNOWN

A new and not yet supported value.

UNSPECIFIED

Probability for harm is unspecified.

Public methods

final @NonNull HarmProbability

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

final @NonNull HarmProbability[]

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

Enum Values

HIGH

HarmProbability HarmProbability.HIGH

Probability for harm is high.

LOW

HarmProbability HarmProbability.LOW

Probability for harm is low.

MEDIUM

HarmProbability HarmProbability.MEDIUM

Probability for harm is medium.

NEGLIGIBLE

HarmProbability HarmProbability.NEGLIGIBLE

Probability for harm is negligible.

UNKNOWN

HarmProbability HarmProbability.UNKNOWN

A new and not yet supported value.

UNSPECIFIED

HarmProbability HarmProbability.UNSPECIFIED

Probability for harm is unspecified.

Public methods

valueOf

public final @NonNull HarmProbability 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 HarmProbability[] 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.