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