Update kdoc for KClass and KClassifier

This commit is contained in:
Alexander Udalov
2016-12-22 17:59:02 +03:00
parent 5402d50ea3
commit dee70abf70
2 changed files with 9 additions and 4 deletions
+5 -2
View File
@@ -133,12 +133,15 @@ public interface KClass<T : Any> : KDeclarationContainer, KAnnotatedElement, KCl
public val isCompanion: Boolean
/**
* Returns `true` if [other] is a [KClass] instance representing the same class on a given platform.
* Returns `true` if this [KClass] instance represents the same Kotlin class as the class represented by [other].
* On JVM this means that all of the following conditions are satisfied:
*
* 1. [other] has the same fully qualified name as this instance.
* 1. [other] has the same (fully qualified) Kotlin class name as this instance.
* 2. [other]'s backing [Class] object is loaded with the same class loader as the [Class] object of this instance.
* 3. If the classes represent [Array], then [Class] objects of their element types are equal.
*
* For example, on JVM, [KClass] instances for a primitive type (`int`) and the corresponding wrapper type (`java.lang.Integer`)
* are considered equal, because they have the same fully qualified name "kotlin.Int".
*/
override fun equals(other: Any?): Boolean
@@ -17,8 +17,10 @@
package kotlin.reflect
/**
* A classifier is either a class, or a type parameter, or a type alias.
* A classifier is either a class or a type parameter.
*
* @see [KClass]
* @see [KTypeParameter]
*/
// TODO: improve doc
@SinceKotlin("1.1")
public interface KClassifier