当前位置:网站首页>Implementation principle of kotlin extension function
Implementation principle of kotlin extension function
2022-06-12 12:10:00 【Duckdan】
package study.yang.carditemdemo.capture
fun String.contact(str: String): String {
return this.plus(str)
}
fun main(){
println("====".contact(" Ha ha I like it "))
}
package study.yang.carditemdemo.capture;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import org.jetbrains.annotations.NotNull;
@Metadata(
mv = {
1, 1, 15},
bv = {
1, 0, 3},
k = 2,
d1 = {
"\u0000\u0010\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u001a\u0006\u0010\u0000\u001a\u00020\u0001\u001a\u0012\u0010\u0002\u001a\u00020\u0003*\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u0003¨\u0006\u0005"},
d2 = {
"main", "", "contact", "", "str", "app_debug"}
)
public final class StringKt {
// Implemented by creating static functions
@NotNull
public static final String contact(@NotNull String $this$contact, @NotNull String str) {
Intrinsics.checkParameterIsNotNull($this$contact, "$this$contact");
Intrinsics.checkParameterIsNotNull(str, "str");
return $this$contact + str;
}
public static final void main() {
String var0 = contact("====", " Ha ha I like it ");
boolean var1 = false;
System.out.println(var0);
}
// $FF: synthetic method
public static void main(String[] var0) {
main();
}
}
边栏推荐
- Shielding does not display vs warning
- JS将DOM导出为图片的方法
- Video JS library uses custom components
- #ifndef#define#endif防止头文件重复包含, 你不是真的懂
- B. Wall painting (C language)
- Analyze the implementation principle of the onion model, and connect the onion model in your own project
- 创建Servlet项目
- 机器学习之决策树
- LeetCode 890. 查找和替换模式(模拟+双哈希表)
- 拿来就能用的网页动画特效,不来看看?
猜你喜欢

Rich text editor copying pictures in word documents

Cookies and sessions

Longest string without duplicate characters (leetcode 3)

mysql复习
![[foundation of deep learning] learning of neural network (4)](/img/8d/0e1b5d449afa583a52857b9ec7af40.png)
[foundation of deep learning] learning of neural network (4)

TinyMCE realizes automatic uploading of pasted pictures

LeetCode 1037. 有效的回旋镖(向量叉乘)
![[foundation of deep learning] back propagation method (1)](/img/0b/540c1f94712a381cae4d30ed624778.png)
[foundation of deep learning] back propagation method (1)

golang的channel和条件变量在单生产单消费场景下的性能对比测试

UML series articles (31) architecture modeling - deployment diagram
随机推荐
树的前序,中序,后序遍历
Cookies and sessions
Macro compilation preprocessing header Win32_ LEAN_ AND_ MEAN
How to determine the relationship between home page and search? Relationship between homepage and search
ARP protocol data processing process of neighbor subsystem
Pytorch笔记
stress - 系统压力模拟工具
[foundation of deep learning] learning of neural network (4)
必杀技--使用FFmpeg命令快速精准剪切视频
LeetCode_二分搜索_中等_162. 寻找峰值
Load/store memory access instruction of arm instruction set (1)
【Leetcode】199. Right view of binary tree
机器学习基础概念
Cookie和Session
Ficusjs series (I) introduction to ficusjs
Video JS library uses custom components
The second regular match is inconsistent with the first one, and the match in the regular loop is invalid
屏蔽不显示VS警告warning
Find the median of two ordered arrays (leetcode 4)
JS to load and display Excel files