Any

expect open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.0
actual open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.1
actual open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.0
actual open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.3
actual open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.8
actual open class Any(source)

The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.

Since Kotlin

1.8

Constructors

Link copied to clipboard
expect constructor()
constructor()
constructor()
constructor()
actual constructor()
actual constructor()

Properties

Link copied to clipboard

Checks if given object is null or frozen or permanent (i.e. instantiated at compile-time).

Since Kotlin 1.3

Functions

Link copied to clipboard
inline fun Any?.asDynamic(): dynamic

Reinterprets this value as a value of the /docs/reference/dynamic-type.html.

Since Kotlin 1.1

Reinterprets this value as a value of the Dynamic type.

Since Kotlin 1.8
Link copied to clipboard

This function ensures that if we see such an object during freezing attempt - freeze fails and FreezingException is thrown.

Since Kotlin 1.3
Link copied to clipboard
expect open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.0
actual open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.1
actual open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.0
actual open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.3
actual open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.8
actual open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

Since Kotlin 1.8
Link copied to clipboard
expect open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

Since Kotlin 1.0
actual open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

Since Kotlin 1.1
actual open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

Since Kotlin 1.0
actual open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

Since Kotlin 1.3
actual open fun hashCode(): Int
Since Kotlin 1.8
actual open fun hashCode(): Int
Since Kotlin 1.8
Link copied to clipboard
inline fun Any?.hashCode(): Int

Returns a hash code value for the object or zero if the object is null.

Since Kotlin 1.3
Link copied to clipboard

Compute stable wrt potential object relocations by the memory manager identity hash code.

Since Kotlin 1.3
Link copied to clipboard
operator fun dynamic.iterator(): Iterator<dynamic>

Allows to iterate this dynamic object in the following cases:

Since Kotlin 1.1
Link copied to clipboard
external fun Any?.objcPtr(): NativePtr
Since Kotlin 1.3
Link copied to clipboard
expect open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.0
actual open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.1
actual open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.0
actual open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.3
actual open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.8
actual open fun toString(): String

Returns a string representation of the object.

Since Kotlin 1.8
Link copied to clipboard
expect fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

Since Kotlin 1.0
actual fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

Since Kotlin 1.1

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

Since Kotlin 1.0
actual inline fun Any?.toString(): String
Since Kotlin 1.3
actual fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

Since Kotlin 1.8
actual fun Any?.toString(): String

Returns a string representation of the object. Can be called with a null receiver, in which case it returns the string "null".

Since Kotlin 1.8
Link copied to clipboard
inline fun <T> dynamic.unsafeCast(): T

Reinterprets this dynamic value as a value of the specified type T without any actual type checking.

Since Kotlin 1.1
inline fun <T> Any?.unsafeCast(): T

Reinterprets this value as a value of the specified type T without any actual type checking.

Since Kotlin 1.1