Class AddressUtil

java.lang.Object
com.skava.accounts.util.AddressUtil
All Implemented Interfaces:
Serializable

public class AddressUtil extends Object implements Serializable
The utility class AddressUtil consists of helper and validator methods for address entity.
Author:
Infosys Equinox
See Also:
  • Constructor Details

    • AddressUtil

      public AddressUtil()
  • Method Details

    • validateIfAlreadyDefaultAddressIsPresentForCreate

      public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForCreate(AddressesEntity address, AccountCommonServices accountCommonService)
      validateIfAlreadyDefaultAddressIsPresent
      Parameters:
      address - address
      accountCommonService - accountCommonService
      Returns:
      AddressesEntity
    • validateIfAlreadyDefaultAddressIsPresentForUpdate

      public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForUpdate(AddressesEntity address, AccountCommonServices accountCommonService)
      validateIfAlreadyDefaultAddressIsPresentForUpdate
      Parameters:
      address - address
      accountCommonService - accountCommonService
      Returns:
      AddressesEntity
    • validateIfAlreadyDefaultAddressIsPresentForUpdateFalse

      public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForUpdateFalse(AddressesEntity address, AccountCommonServices accountCommonService)
      validateIfAlreadyDefaultAddressIsPresentForUpdate
      Parameters:
      address - address
      accountCommonService - accountCommonService
      Returns:
      AddressesEntity