kotlin.Any
Any
open class Any
The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass.
Constructors
Any() The root of the Kotlin class hierarchy. Every Kotlin class has Any as a superclass. |
Functions
open operator fun equals(other: Any?): Boolean Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements: | |
open fun hashCode(): Int Returns a hash code value for the object. The general contract of hashCode is: | |
open fun toString(): String Returns a string representation of the object. |
Extension Properties
val <T : Any> T.javaClass: Class<T> Returns the runtime Java class of this object. |
Extension Functions
fun <T> T.also(block: (T) -> Unit): T Calls the specified function block with | |
fun <T> T.apply(block: T.() -> Unit): T Calls the specified function block with | |
fun Any?.asDynamic(): dynamic Reinterprets this value as a value of the dynamic type. | |
operator fun dynamic.iterator(): Iterator<dynamic> Allows to iterate this | |
fun <T, R> T.let(block: (T) -> R): R Calls the specified function block with | |
fun <T, R> T.run(block: T.() -> R): R Calls the specified function block with | |
fun <T> T.takeIf(predicate: (T) -> Boolean): T? Returns | |
fun <T> T.takeUnless(predicate: (T) -> Boolean): T? Returns | |
infix fun <A, B> A.to(that: B): Pair<A, B> | |
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". | |
fun <T> Any?.unsafeCast(): T Reinterprets this value as a value of the specified type T without any actual type checking. |
© 2010–2017 JetBrains s.r.o.
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/