Last active
December 8, 2022 01:23
-
-
Save oharaandrew314/fd5392717cfc8ee20eae5a93e8464245 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
import java.util.UUID | |
data class Cat( | |
val id: UUID, | |
val name: String, | |
val ownerId: UUID | |
) | |
interface CatsRepo { | |
operator fun get(id: UUID): Cat? | |
fun listForOwner(ownerId: UUID): List<Cat> | |
operator fun plusAssign(cat: Cat) | |
operator fun minusAssign(id: UUID) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment