Created
June 16, 2019 16:12
-
-
Save sirech/850aa5db88161abd887b37c7a32598a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class UserId(private val value: String) { | |
companion object { | |
@JvmStatic | |
@JsonCreator | |
fun create(value: String) = UserId(value.toLowerCase()) | |
} | |
@JsonValue | |
override fun toString() = value | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment