Kotlin Language Documentation 1.9.20358 358 362 362 362 362 363 364 13 Numbers representation on the JVM Explicit number conversions Operations on numbers Unsigned integer types Unsigned arrays and ranges Unsigned integers literals Properties in interfaces Interfaces Inheritance Resolving overriding conflicts Functional (SAM) interfaces SAM conversions Migration from an interface with constructor function to a functional interface Functional exceptions Object methods Inheritance from Java classes Accessing static members Java reflection SAM conversions Using JNI with Kotlin Using Lombok-generated declarations in Kotlin Calling Kotlin from Java0 码力 | 1299 页 | 32.44 MB | 1 年前3
Kotlin 1.2 Language DocumentationScope control for implicit receivers in DSLs rem operator Standard library String to number conversions onEach() also(), takeIf() and takeUnless() 18 also is like apply : it takes the receiver, — — — — — — — — — — — — — Operators and conversions for BigInteger and BigDecimal — — — — — Floating point to bits conversions — — Regex is now serializable Closeable.use calls in a way close to Java, but not exactly the same. For example, there are no implicit widening conversions for numbers, and literals are slightly different in some cases. Kotlin provides the following0 码力 | 333 页 | 2.22 MB | 1 年前3
Kotlin 1.4 language features@sveta_isakova Kotlin 1.4 Language Features Svetlana Isakova Kotlin 1.4 Language Features • SAM conversions for Kotlin classes • Explicit API mode • Trailing comma • Break and continue inside null checks SAM conversions for Kotlin interfaces SAM = Single abstract method interface Action { fun run() } SAM conversion Ability to pass a lambda or callable reference when a SAM interface interface is expected runAction { println("I'm Kotlin 1.3") } SAM conversion for a Java interface public interface Action { void run(); } public static void runAction(Action action) { action0 码力 | 69 页 | 3.29 MB | 1 年前3
Kotlin Language Documentation 1.3not want to shadow this from the outer scope: rem operator Standard library String to number conversions onEach() also(), takeIf() and takeUnless() 29 fun Block.copy() = Block().also { it.content operations in kotlin-stdlib — — — — — — — — — — — — — — — — — Operators and conversions for BigInteger and BigDecimal 40 toBigInteger for Int and Long ; toBigDecimal for Int , Long order in which the classes are loaded and initialized; — — — — — Floating point to bits conversions — — Regex is now serializable Closeable.use calls Throwable.addSuppressed if available JVM0 码力 | 597 页 | 3.61 MB | 1 年前3
Kotlin 1.9.10 官方文档 中文版
1.8.4.17 1.8.5 1.8.5.1 1.8.5.2 1.8.5.3 控制流程 条件与循环 返回与跳转 异常 包与导入 类与对象 类 继承 属性 接口 函数式(SAM)接口 可见性修饰符 扩展 数据类 密封类与密封接口 泛型:in、out、where 嵌套类 枚举类 内联类 对象表达式与对象声明 委托 属性委托 类型别名 函数 函数 编写代码文档:KDoc Kotlin 与 OSGi 编译器与插件 编译器 Kotlin 命令行编译器 Kotlin 编译器选项 编译器插件 全开放编译器插件 No-arg 编译器插件 带有接收者的 SAM 编译器插件 kapt 编译器插件 Lombok 编译器插件 Kotlin 符号处理(KSP)API KSP 概述 KSP 快速入门 为什么选用 KSP KSP 示例 KSP 如何为 语言互操作隐式整数转换的编译器选项 We have introduced a compiler option for C interop that allows you to use implicit integer conversions. After careful consideration, we've introduced this compiler option to prevent unintentional use0 码力 | 3753 页 | 29.69 MB | 1 年前3
Kotlin 官方文档中文版 v1.9概述 数字 布尔 字符 字符串 数组 无符号整型 类型检测与类型转换 控制流程 条件与循环 返回与跳转 异常 包与导入 类与对象 类 继承 属性 接口 函数式(SAM)接口 可见性修饰符 扩展 3 1.8.4.8 1.8.4.9 1.8.4.10 1.8.4.11 1.8.4.12 1.8.4.13 1.8.4.14 1.8.4.15 1 编写代码文档:KDoc Kotlin 与 OSGi 编译器与插件 编译器 Kotlin 命令行编译器 Kotlin 编译器选项 编译器插件 全开放编译器插件 No-arg 编译器插件 带有接收者的 SAM 编译器插件 kapt 编译器插件 Lombok 编译器插件 Kotlin 符号处理(KSP)API KSP 概述 KSP 快速入门 为什么选用 KSP KSP 示例 KSP 如何为 语言互操作隐式整数转换的编译器选项 We have introduced a compiler option for C interop that allows you to use implicit integer conversions. After careful consideration, we've introduced this compiler option to prevent unintentional use0 码力 | 2049 页 | 45.06 MB | 1 年前3
Build web application with Golangh.phone) } func main() { sam := Employee{Human{"Sam", 45, "111-888-XXXX"}, "Golang Inc"} mark := Student{Human{"Mark", 25, "222-222-YYYY"}, "MIT"} sam.SayHi() mark.SayHi() } Method lines here. } func main() { sam := Employee{Human{"Sam", 45, "111-888-XXXX"}, "Golang Inc"} mark := Student{Human{"Mark", 25, "222-222-YYYY"}, "MIT"} sam.SayHi() mark.SayHi() } You Student{Human{"Paul", 26, "111-222-XXX"}, "Harvard", 100} sam := Employee{Human{"Sam", 36, "444-222-XXX"}, "Golang Inc.", 1000} tom := Employee{Human{"Sam", 36, "444-222-XXX"}, "Things Ltd.", 5000} //0 码力 | 327 页 | 1.63 MB | 1 年前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 7.11 fpformat —Floating point conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 8 数据类型 137 8.1 datetime —基本的日期和时间类型 a string containing a printable representation of an object. This is the same value yielded by conversions (reverse quotes). It is sometimes useful to be able to access this operation as an ordinary function lowercase and uppercase as arguments; in some locales, these don’ t have the same length. For case conversions, always use str.lower() and str.upper(). 80 Chapter 7. String Services The Python Library Reference0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 7.11 fpformat —Floating point conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 8 数据类型 137 8.1 datetime —基本的日期和时间类型 a string containing a printable representation of an object. This is the same value yielded by conversions (reverse quotes). It is sometimes useful to be able to access this operation as an ordinary function lowercase and uppercase as arguments; in some locales, these don’ t have the same length. For case conversions, always use str.lower() and str.upper(). 80 Chapter 7. String Services The Python Library Reference0 码力 | 1552 页 | 7.42 MB | 9 月前3
Python 标准库参考指南 2.7.18 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 7.11 fpformat —Floating point conversions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 134 8 数据类型 137 8.1 datetime —基本的日期和时间类型 a string containing a printable representation of an object. This is the same value yielded by conversions (reverse quotes). It is sometimes useful to be able to access this operation as an ordinary function lowercase and uppercase as arguments; in some locales, these don’ t have the same length. For case conversions, always use str.lower() and str.upper(). 80 Chapter 7. String Services The Python Library Reference0 码力 | 1552 页 | 7.42 MB | 9 月前3
共 755 条
- 1
- 2
- 3
- 4
- 5
- 6
- 76













