Skip to content

Commit 2a10080

Browse files
committed
classes for test
1 parent db3e96d commit 2a10080

File tree

8 files changed

+59
-0
lines changed

8 files changed

+59
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
data class Car(
4+
val id: Int,
5+
val name: String,
6+
val type: VehicleType,
7+
var price: Money,
8+
val manufacturer: Manufacturer,
9+
val engine: Engine,
10+
val color: String,
11+
val wheel: Map<String, Wheel>,
12+
val windows: List<Window>,
13+
val isPrototype: Boolean
14+
)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
enum class Color {
4+
WHITE
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
class Engine(
4+
val power: Float,
5+
val manufacturer: Manufacturer,
6+
val partId: String?
7+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
data class Manufacturer(
4+
val name: String,
5+
val id: Int
6+
)
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
import java.util.Currency
4+
5+
data class Money(
6+
val amount: Double,
7+
val currency: Currency
8+
)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
enum class VehicleType {
4+
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
import java.math.BigDecimal
4+
5+
class Wheel(
6+
val size: BigDecimal,
7+
val positionFromFront: Int,
8+
val isLeft: Boolean
9+
)
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package com.github.developerutils.kotlinfunctionargumentshelper.demo.model
2+
3+
data class Window(
4+
val name: String,
5+
val side: String
6+
)

0 commit comments

Comments
 (0)