Skip to content

Instantly share code, notes, and snippets.

@charlesmuchene
Created February 21, 2020 03:57
Show Gist options
  • Save charlesmuchene/51b86aac6318f7f703b6b598061a967f to your computer and use it in GitHub Desktop.
Save charlesmuchene/51b86aac6318f7f703b6b598061a967f to your computer and use it in GitHub Desktop.
Single Method UseCase
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