Hanbit the Developer
Kotlin Documentation | Type aliases 본문
Category: Concepts - Classes and objects
문서 링크: https://kotlinlang.org/docs/type-aliases.html
기존에 존재하는 타입의 alternative name을 제공한다.
typealias NodeSet = Set<Network.Node>
typealias FileTable<K> = MutableMap<K, MutableList<File>>
typealias MyHandler = (Int, String, Any) -> Unit
typealias Predicate<T> = (T) -> Boolean
class A {
inner class Inner
}
class B {
inner class Inner
}
typealias AInner = A.Inner
typealias BInner = B.Inner
'Kotlin' 카테고리의 다른 글
Kotlin Documentation | Lamdas (0) | 2023.05.23 |
---|---|
Kotlin Documentation | Functions (0) | 2023.05.23 |
Kotlin Documentation | Delegated properties (0) | 2023.05.23 |
Kotlin Documentation | Delegation (0) | 2023.05.23 |
Kotlin Documentation | Object expressions and declarations (0) | 2023.05.23 |