has Parent Interface Of
abstract fun hasParentInterfaceOf(name: KClass<*>, vararg names: KClass<*>, indirectParents: Boolean = false): Boolean
Determines whether the declaration has at least one parent interface of the specified KClass type.
Return
true if there is a matching declaration, false otherwise.
Parameters
name
the KClass type of the parent interface to check.
names
the KClass types of the parent interfaces to check.
indirect Parents
specifies whether to include parent interfaces defined in other files such as parent of the parent.
abstract fun hasParentInterfaceOf(names: Collection<KClass<*>>, indirectParents: Boolean = false): Boolean
Determines whether the declaration has at least one parent interface of the specified KClass type.
Return
true if there is a matching declaration, false otherwise.
Parameters
names
the KClass types of the parent interfaces to check.
indirect Parents
specifies whether to include parent interfaces defined in other files such as parent of the parent.