Core API – Kotlin Programming Language (original) (raw)

AnnotationRetention

Contains the list of possible annotation's retentions.

Determines how an annotation is stored in binary output.

Since Kotlin

1.0

Annotation isn't stored in binary output

Annotation is stored in binary output, but invisible for reflection

Annotation is stored in binary output and visible for reflection (default retention)

Returns a Java Class instance of the enum the given constant belongs to.

Returns the name of this enum constant, exactly as declared in its enum declaration.

Returns the ordinal of this enumeration constant (its position in its enum declaration, where the initial constant is assigned an ordinal of zero).

Compares this object with the specified object for order. Returns zero if this object is equal to the specified other object, a negative number if it's less than other, or a positive number if it's greater than other.