-
-
Save le0nidas/45f9e1842809167174f1f674922aa5e7 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
class LessUglyTask private constructor( | |
val name: String, | |
val assignedUser: User?, | |
val assignedGroup: Group? | |
) { | |
constructor(name: String) : this(name, null, null) // assigned to no one | |
constructor(name: String, assignedUser: User) : this(name, assignedUser, null) // assigned to a user | |
constructor(name: String, assignedGroup: Group) : this(name, null, assignedGroup) // assigned to a group | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment