Created
February 21, 2020 03:57
-
-
Save charlesmuchene/51b86aac6318f7f703b6b598061a967f to your computer and use it in GitHub Desktop.
Single Method UseCase
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
interface UseCase { | |
fun invoke() | |
} | |
class UseCaseImpl: UseCase { | |
override fun invoke() { | |
println("Invalidate cache") | |
} | |
} | |
val usecase: UseCase = UseCaseImpl() | |
usecase.invoke() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment