Class BaseUseCase

  • All Implemented Interfaces:

    
    public abstract class BaseUseCase<Param extends Object, Type extends Object>
    
                        

    Executes business logic synchronously or asynchronously using Coroutines.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      BaseUseCase(CoroutineDispatcher coroutineDispatcher)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Completion<Type> invoke(Param parameters) Executes the use case asynchronously and returns a Completion.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BaseUseCase

        BaseUseCase(CoroutineDispatcher coroutineDispatcher)
    • Method Detail

      • invoke

         final Completion<Type> invoke(Param parameters)

        Executes the use case asynchronously and returns a Completion.

        Parameters:
        parameters - the input parameters to run the use case with