Interface UseCase<I,O>
-
- Type Parameters:
I
- Parameter typeO
- Return type
- All Known Implementing Classes:
Connect
,DeleteSettings
,FetchAllScores
,FetchAllSettingsName
,FetchMinefield
,LoadSettings
,Quit
,SaveScore
,SaveSettings
,SendPlayerToServer
,UpdateServerTile
,WatchEndGameMessages
,WatchServerPlayerList
,WatchServerStartGame
,WatchServerTiles
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface UseCase<I,O>
Use case based on the Clean Architecture.These use cases orchestrate the flow of data to and from the entities, and direct those entities to use their Critical Business Rules to achieve the goals of the use case.
Precisely, this class will make sure that the IO Thread is used for IO tasks, and will make sure that the use cases with the interface of the app are assured.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description O
execute(I params)
-