This Expression Qualified this Implicit this This Expression To denote the current receiver, we use this expressions: In a member of a class , this refers to the current o...
枚举类 匿名类 在枚举类中实现接口 使用枚举常量 枚举类 枚举类的最基本的应用场景是实现类型安全的枚举: enum class Direction { NORTH , SOUTH , WEST , EAST } 每个枚举常量都是一个对象。枚举常量以逗号分隔。 因为每一个枚举都是枚举类的实例,所以可以这样...
What’s New in Kotlin 1.1 Table of Contents JavaScript Coroutines (experimental) Other Language Features Type aliases Bound callable references Sealed and data classes Destruc...
Inline Functions noinline Non-local returns Reified type parameters Inline properties (since 1.1) Restrictions for public API inline functions Inline Functions Using highe...