-
Notifications
You must be signed in to change notification settings - Fork 0
BaseDto
BaseDto is an Object Structure that All Service in All Project Return Data in this class we have some fields
String code (the code Of response of methode)
String message (the message Of response of methode)
Status (the status Of response of methode)
T data (the object result of method)
List notifies (the list of notifications of response such ass warning and etc)
isPresent() -> check the data in BaseDto is null or not
orElseThrow(ServiceException) -> throw your exceptions if is not present
ifNotSuccessThrow(ServiceException) -> throw your exceptions if the return has not successCode
orElse(T r) -> return if is not present
ifPresent(Runnable action) -> run Action and Your Impl if its present
call(Runnable action) -> run Action and Your Impl after object return
stream(@NotNull ServiceException e) -> return the Stream of Object and Throw Exception if it is not Present