java.lang.Object
com.brodygaudel.bank.common.util.implementation.MappersImpl
All Implemented Interfaces:
Mappers

@Service public class MappersImpl extends Object implements Mappers
  • Constructor Details

    • MappersImpl

      public MappersImpl()
  • Method Details

    • fromCustomer

      public CustomerResponseDTO fromCustomer(@NotNull @NotNull Customer customer)
      Description copied from interface: Mappers
      Converts a Customer entity to a CustomerResponseDTO.
      Specified by:
      fromCustomer in interface Mappers
      Parameters:
      customer - The Customer entity to be converted.
      Returns:
      The corresponding CustomerResponseDTO.
    • fromListOfCustomers

      public List<CustomerResponseDTO> fromListOfCustomers(@NotNull @NotNull List<Customer> customers)
      Description copied from interface: Mappers
      Converts a list of Customer entities to a list of CustomerResponseDTOs.
      Specified by:
      fromListOfCustomers in interface Mappers
      Parameters:
      customers - The list of Customer entities to be converted.
      Returns:
      The corresponding list of CustomerResponseDTOs.
    • fromAccount

      public AccountResponseDTO fromAccount(@NotNull @NotNull Account account)
      Description copied from interface: Mappers
      Converts an Account entity to an AccountResponseDTO.
      Specified by:
      fromAccount in interface Mappers
      Parameters:
      account - The Account entity to be converted.
      Returns:
      The corresponding AccountResponseDTO.
    • fromListOfAccounts

      public List<AccountResponseDTO> fromListOfAccounts(@NotNull @NotNull List<Account> accounts)
      Description copied from interface: Mappers
      Converts a list of Account entities to a list of AccountResponseDTOs.
      Specified by:
      fromListOfAccounts in interface Mappers
      Parameters:
      accounts - The list of Account entities to be converted.
      Returns:
      The corresponding list of AccountResponseDTOs.
    • fromOperation

      public OperationResponseDTO fromOperation(@NotNull @NotNull Operation operation)
      Description copied from interface: Mappers
      Converts an Operation entity to an OperationResponseDTO.
      Specified by:
      fromOperation in interface Mappers
      Parameters:
      operation - The Operation entity to be converted.
      Returns:
      The corresponding OperationResponseDTO.
    • fromListOfOperations

      public List<OperationResponseDTO> fromListOfOperations(@NotNull @NotNull List<Operation> operations)
      Description copied from interface: Mappers
      Converts a list of Operation entities to a list of OperationResponseDTOs.
      Specified by:
      fromListOfOperations in interface Mappers
      Parameters:
      operations - The list of Operation entities to be converted.
      Returns:
      The corresponding list of OperationResponseDTOs.