上一页 1 ··· 171 172 173 174 175 176 177 178 179 ··· 494 下一页
摘要: Java way: package com.rsk.java; import java.util.function.Function; public class FPExample { public static Function<String, String> toSentenceCase = x 阅读全文
posted @ 2020-10-21 02:07 Zhentiw 阅读(89) 评论(0) 推荐(0)
摘要: For example you have the Java class: package com.rsk.java; import com.rsk.kotlin.Customer; import com.rsk.kotlin.CustomerDatabase; import java.util.*; 阅读全文
posted @ 2020-10-21 01:46 Zhentiw 阅读(96) 评论(0) 推荐(0)
摘要: npm install cookies-js --save import {Component, OnInit} from '@angular/core'; import {FormGroup, FormBuilder, Validators} from "@angular/forms"; impo 阅读全文
posted @ 2020-10-19 23:14 Zhentiw 阅读(161) 评论(0) 推荐(0)
摘要: // course-detail.resolver.ts import {Resolve, ActivatedRouteSnapshot, RouterStateSnapshot} from "@angular/router"; import {Course} from "../shared/mod 阅读全文
posted @ 2020-10-19 23:08 Zhentiw 阅读(141) 评论(0) 推荐(0)
摘要: For example we want to build pipe to sanitizer the url: @Pipe({ name: 'safeUrl' }) export class SafeUrlPipe implements PipeTransform { constructor(pri 阅读全文
posted @ 2020-10-19 22:41 Zhentiw 阅读(151) 评论(0) 推荐(0)
摘要: buildscript { ext.kotlin_version = '1.1-M01' ext.kotlin_gradle_version = '1.1-M01' ext.mokito_kotlin_version = '0.6.0' ext.spek_version = '1.0.89' ext 阅读全文
posted @ 2020-10-18 21:38 Zhentiw 阅读(222) 评论(0) 推荐(0)
摘要: Create a Kotlin class: package com.rsk.kotlin class Meeting(val title: String) { // in Java, you can use getLocation and setLocation var location = "" 阅读全文
posted @ 2020-10-15 21:21 Zhentiw 阅读(108) 评论(0) 推荐(0)
摘要: Create a Java class: package com.rsk.java; import org.jetbrains.annotations.Nullable; public class Person { private String name; private int age; priv 阅读全文
posted @ 2020-10-15 21:04 Zhentiw 阅读(95) 评论(0) 推荐(0)
摘要: package com.rsk interface Signatory { fun sign() } open class Person(val name: String, var age: Int, var isMarried: Boolean = false): Signatory { over 阅读全文
posted @ 2020-10-15 20:48 Zhentiw 阅读(98) 评论(0) 推荐(0)
摘要: If your method is just a single line, it is good to use method expressions: interface Signatory { fun sign() } class Person: Signatory { override fun 阅读全文
posted @ 2020-10-15 18:35 Zhentiw 阅读(74) 评论(0) 推荐(0)
上一页 1 ··· 171 172 173 174 175 176 177 178 179 ··· 494 下一页