๋น ๊ตฌ๋ฉ ์ฑ์ฐ๊ธฐ (341) ์ธ๋ค์ผํ ๋ฆฌ์คํธํ [Kotlin] init ๋ธ๋ก ์ถ์ฒhttps://kotlinlang.org/docs/classes.html#constructors Classes | Kotlin kotlinlang.orghttps://kotlinlang.org/docs/inheritance.html#derived-class-initialization-order Inheritance | Kotlin kotlinlang.org ํด๋์ค์ ์ด๊ธฐํ๊ธฐ๋ณธ ์์ฑ์๋ ํด๋์ค ํค๋(ํด๋์ค์ ์ด๋ฆ๊ณผ ์ฃผ์์ฑ์)์์ ํด๋์ค ์ธ์คํด์ค์ ํด๋น ์์ฑ์ ์ด๊ธฐํํ๋ค. ๊ฐ์ฒด ์์ฑ ์ค์ ์ฝ๋๋ฅผ ์คํํ๋ ค๋ฉด ํด๋์ค ๋ณธ๋ฌธ ๋ด๋ถ์ ์ด๊ธฐํ ๋ธ๋ก์ ์ฌ์ฉํ๋ค. ์ด๊ธฐํ ๋ธ๋ก์ init ํค์๋ ๋ค์ ์ค๊ดํธ๋ฅผ ๋ถ์ฌ ์ ์ธํ๋ค. ์คํํ๋ ค๋ ์ฝ๋๋ ์ค๊ดํธ ์์ ์์ฑํ๋ค. ์ธ์คํด์ค๋ฅผ ์ด๊ธฐํ ์ค์ ์ด๊ธฐํ ๋ธ๋ก๊ณผ ์์ฑ ์ด๊ธฐํ๋ .. [JVM] invokedynamic ์ดํดํ๊ธฐ ์ถ์ฒhttps://stackoverflow.com/a/62354389 What is a bootstrap method?I have been reading this presentation about java8 lambdas implementation http://fr.slideshare.net/czechscala/java-8-under-the-hood LambdaMetaFactory contains bootstrap methods for converting la...stackoverflow.comhttps://blogs.oracle.com/javamagazine/post/understanding-java-method-invocation-with-invokedynamichttps://docs.deisterc.. [Kotlin] interface ์ default method๋ฅผ ์๋ฐ๋ก ๋ณํํ๊ธฐ ์ถ์ฒhttps://kotlinlang.org/docs/java-to-kotlin-interop.html#default-methods-in-interfaces Calling Kotlin from Java | Kotlin kotlinlang.orghttps://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-m3-generating-default-methods-in-interfaces/ Kotlin 1.4-M3: Generating Default Methods in Interfaces | The Kotlin BlogIn Kotlin 1.4, we’re adding new experimental ways for generating default methods in interfa.. [Kotlin] const val ์ถ์ฒhttps://thinking-face.tistory.com/185 [Kotlin] const, val, varKotlin์์ ``const``๋ ์ปดํ์ผ ์๊ฐ์ ๊ฒฐ์ ๋๋ค๋ ์๋ฏธ๋ฅผ ๊ฐ๊ณ ์๋ค. ํ๋ก๊ทธ๋จ์ด ์คํ๋๋ ๋ฐํ์ ์ด์ ์ ์ด๋ฏธ ๊ฒฐ์ ๋์ด ๋ณํ์ง ์๋๋ค๋ ๊ฒ์ด๋ค. ๊ทธ๋์ ``const val``์ ์ปดํ์ผ ์๊ฐ์ ๊ฒฐ์ ๋๋ ์์thinking-face.tistory.comhttps://kotlinlang.org/docs/properties.html#compile-time-constants Properties | Kotlin kotlinlang.orghttps://stackoverflow.com/questions/37595936/what-is-the-difference-between-const-and-va.. [Kotlin] @JvmOverloads - ๋ํดํธ ํ๋ผ๋ฏธํฐ๋ฅผ ์๋ฐ์์๋ ์ด์ฉํ๊ธฐ ์ถ์ฒhttps://kotlinlang.org/docs/java-to-kotlin-interop.html#overloads-generation Calling Kotlin from Java | Kotlin kotlinlang.orghttps://kotlinlang.org/api/latest/jvm/stdlib/kotlin.jvm/-jvm-overloads/ JvmOverloads - Kotlin Programming Language kotlinlang.org ์ฝํ๋ฆฐ์ ๋ํดํธ ํ๋ผ๋ฏธํฐ๋ ์๋ฐ๋ก ์ปดํ์ผ๋๋ฉด ์ฌ์ฉํ ์ ์๋ค. ์๋ฐ์์๋ ์ผ์ผ์ด ๋ชจ๋ ํ๋ผ๋ฏธํฐ๋ค์ ๊ธฐ์ ํด์ผ ํ๋ค.@JvmOverlaods๋ฅผ ์ฌ์ฉํ๋ฉด ๋ํดํธ ํ๋ผ๋ฏธํฐ๊ฐ ์ค๋ฅธ์ชฝ๋ถํฐ ํ๋์ฉ ์ค์ด๋๋ ์ค๋ฒ๋ก๋๋ ํจ์๋ค์ ์์ฑํ๋ค. ์์ฑ์, ์คํ ํฑ ๋ฉ์๋ ๋ฑ์๋.. [Kotlin] @JvmField : ์ปดํ์ผ์ ๊ฒํฐ, ์ธํฐ ์์ ๊ธฐ ์ถ์ฒhttps://kotlinlang.org/docs/java-to-kotlin-interop.html#instance-fields Calling Kotlin from Java | Kotlin kotlinlang.org ์ฝํ๋ฆฐ์ ์๋์ผ๋ก ํ๋์ getter, setter๋ฅผ ์์ฑํด์ค๋ค. ์ด์ ๊ฐ์ ์์ฑ์ @JvmFiled๋ก ๋ง์ ์ ์๋ค. ์ฝํ๋ฆฐ ์ฝ๋ : @JvmField ์์ดclass User(id: Int) { var userId: Int = id} -> ์๋ฐ๋ก ์ปดํ์ผpublic final class User { private int userId; public final int getUserId() { return this.userId; } public final void .. [Kotlin][Java] Kotlin ๋ฌธ์์ด ์ฐ๊ฒฐ์ด ์๋ฐ๋ก ์ปดํ์ผ ์์ ๋์ ์ถ์ฒhttps://medium.com/%EC%8A%AC%EA%B8%B0%EB%A1%9C%EC%9A%B4-%EA%B0%9C%EB%B0%9C%EC%83%9D%ED%99%9C/java-string-%EC%97%B0%EC%82%B0-string-concat-d76a6eea75 javaโ—โString + ์ฐ์ฐ (String Concat)StringConcatFactorymedium.comhttps://jerry92k.tistory.com/50 str1 ๊ฐ์ฒด ์์ฑ, str1+"b" ๊ฐ์ฒด ์์ฑ, str1+"b"+"c" ๊ฐ์ฒด ์์ฑ ๊ทธ๋" data-og-host="jerry92k.tistory.com" data-og-source-url="https://jerry92k.tistory.com/50" data-og-url=.. [Kotlin][Java] Java์ Stream์ด ์์์๋ Kotlin์ Sequence๋ ์ ๋ง๋ค์์๊น ์ถ์ฒKotlin In Actionhttps://bcp0109.tistory.com/359 Kotlin Collections ์ Sequences ์ ์ฐจ์ด์ (feat. Java Stream)Overview Java8 ์์๋ Collection ์ ๋ค๋ฃจ๊ธฐ ์ํด Stream ์ ์ฌ์ฉํฉ๋๋ค. Kotlin ์ Collections ์์ฒด์์ filter, map ๋ฑ์ ์ฌ๋ฌ ๊ฐ์ง API ๋ฅผ ์ ๊ณตํ๊ธฐ ๋๋ฌธ์ ๋งค๋ฒ .streams() ๋ฅผ ๋ถ์ด์ง ์์๋ ์ฌ์ฉ ๊ฐ๋ฅํ๋ค๋ ์ฅ์ bcp0109.tistory.com ์๋ฐ์ Stream๊ณผ ์ฝํ๋ฆฐ์ Collection, Sequence ๋น๊ตhttps://bcp0109.tistory.com/359 Kotlin Collections ์ Sequences ์ ์ฐจ์ด์ (feat. Jav.. ์ด์ 1 2 3 4 5 ยทยทยท 43 ๋ค์