Experimental.Level


public enum Experimental.Level extends Enum


Severity of the diagnostic that should be reported on usages of experimental API which did not explicitly accept the experimental aspect of that API either by using UseExperimental or by being annotated with the corresponding marker annotation.

Summary

Enum Values

ERROR

Specifies that an error should be reported on incorrect usages of this experimental API.

WARNING

Specifies that a warning should be reported on incorrect usages of this experimental API.

Public methods

final @NonNull EnumEntries<@NonNull Experimental.Level>

Severity of the diagnostic that should be reported on usages of experimental API which did not explicitly accept the experimental aspect of that API either by using UseExperimental or by being annotated with the corresponding marker annotation.

final @NonNull Experimental.Level

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

final @NonNull Experimental.Level[]

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

Enum Values

ERROR

Experimental.Level Experimental.Level.ERROR

Specifies that an error should be reported on incorrect usages of this experimental API.

WARNING

Experimental.Level Experimental.Level.WARNING

Specifies that a warning should be reported on incorrect usages of this experimental API.

Public methods

getEntries

public final @NonNull EnumEntries<@NonNull Experimental.LevelgetEntries()

Severity of the diagnostic that should be reported on usages of experimental API which did not explicitly accept the experimental aspect of that API either by using UseExperimental or by being annotated with the corresponding marker annotation.

valueOf

Added in 1.0.0
public final @NonNull Experimental.Level 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

if this enum type has no constant with the specified name

values

Added in 1.0.0
public final @NonNull Experimental.Level[] 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.