Skip to content
This repository was archived by the owner on Jan 20, 2023. It is now read-only.

Commit c17aecf

Browse files
committed
ダミーコンストラクタに関して追記
1 parent 8e69cab commit c17aecf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.ja.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ data class Dst(...)
126126
val mapper: KRowMapper<Dst> = KRowMapper(Dst::class)
127127
```
128128

129+
ダミーコンストラクタを用いることで以下のようにも書けます。
130+
131+
```kotlin
132+
val mapper: KRowMapper<Dst> = KRowMapper<Dst>()
133+
```
134+
129135
#### KConstructorアノテーションによる呼び出し対象指定
130136
`KClass`から初期化を行う場合、`KConstructor`アノテーションを用いて呼び出し対象の関数を指定することができます。
131137

0 commit comments

Comments
 (0)