mirror of
https://github.com/2martens/tsw-timetable.git
synced 2026-10-17 07:57:55 +02:00
Changed name
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
package de.twomartens.timetable.types
|
package de.twomartens.timetable.types
|
||||||
|
|
||||||
@JvmInline
|
@JvmInline
|
||||||
value class NonEmptyString(val name: String) {
|
value class NonEmptyString(val value: String) {
|
||||||
init {
|
init {
|
||||||
require(name.isNotBlank()) {
|
require(value.isNotBlank()) {
|
||||||
"Name must not be blank"
|
"Name must not be blank"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user