The common base class of all enum classes. See the Kotlin language documentation for more information on enum classes.
Returns the name of this enum constant, exactly as declared in its enum declaration.
val name: String
Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).
val ordinal: Int
Throws an exception since enum constants cannot be cloned.
This method prevents enum classes from inheriting from
fun clone(): Any
Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:
fun equals(other: Any?): Boolean
Returns a hash code value for the object. The general contract of
fun hashCode(): Int
Returns a string representation of the object.
open fun toString(): String
fun <T : Comparable<T>> T.coerceIn(
Contains the list of possible annotation's retentions.
enum class AnnotationRetention
Contains the list of code elements which are the possible annotation targets
enum class AnnotationTarget
Represents the character general category in the Unicode specification.
enum class CharCategory
Represents the Unicode directionality of a character. Character directionality is used to calculate the visual ordering of text.
enum class CharDirectionality
The result of the
copyAction function passed to Path.copyToRecursively that specifies further actions when copying an entry.
enum class CopyActionResult
Central Processor Unit architecture.
enum class CpuArchitecture
Possible levels of a deprecation. The level specifies how the deprecated element usages are reported in code.
enum class DeprecationLevel
The list of possible time measurement units, in which a duration can be expressed.
enum class DurationUnit
An enumeration to describe possible walk directions. There are two of them: beginning from parents, ending with children, and beginning from children, ending with parents. Both use depth-first search.
enum class FileWalkDirection
State of the future object.
enum class FutureState
Specifies how many times a function invokes its function parameter in place.
enum class InvocationKind
Represents variance applied to a type parameter on the declaration site (declaration-site variance), or to a type in a projection (use-site variance).
enum class KVariance
Visibility is an aspect of a Kotlin declaration regulating where that declaration is accessible in the source code.
Visibility can be changed with one of the following modifiers:
enum class KVisibility
Specifies how a Lazy instance synchronizes initialization among multiple threads.
enum class LazyThreadSafetyMode
enum class MemoryModel
Enum that can be used to specify behaviour of the
in exceptional conditions.
enum class OnErrorAction
The result of the
onError function passed to Path.copyToRecursively that specifies further actions when an exception occurs.
enum class OnErrorResult
Operating system family.
enum class OsFamily
An enumeration to provide walk options for Path.walk function. The options can be combined to form the walk order and behavior needed.
enum class PathWalkOption
Provides enumeration values to use to set regular expression options.
enum class RegexOption
enum class RegexOption : FlagEnum
Note: modern Kotlin/Native memory manager allows to share objects between threads without additional ceremonies, so TransferMode has effect only in legacy memory manager.
enum class TransferMode