Skip to content

Instantly share code, notes, and snippets.

@oharaandrew314
Last active December 8, 2022 01:23
Show Gist options
  • Save oharaandrew314/fd5392717cfc8ee20eae5a93e8464245 to your computer and use it in GitHub Desktop.
Save oharaandrew314/fd5392717cfc8ee20eae5a93e8464245 to your computer and use it in GitHub Desktop.
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