Package com.skava.accounts.util
Class AddressUtil
java.lang.Object
com.skava.accounts.util.AddressUtil
- All Implemented Interfaces:
Serializable
The utility class AddressUtil consists of helper and validator methods for address entity.
- Author:
- Infosys Equinox
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AddressesEntity
validateIfAlreadyDefaultAddressIsPresentForCreate
(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresentstatic AddressesEntity
validateIfAlreadyDefaultAddressIsPresentForUpdate
(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresentForUpdatestatic AddressesEntity
validateIfAlreadyDefaultAddressIsPresentForUpdateFalse
(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresentForUpdate
-
Constructor Details
-
AddressUtil
public AddressUtil()
-
-
Method Details
-
validateIfAlreadyDefaultAddressIsPresentForCreate
public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForCreate(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresent- Parameters:
address
- addressaccountCommonService
- accountCommonService- Returns:
- AddressesEntity
-
validateIfAlreadyDefaultAddressIsPresentForUpdate
public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForUpdate(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresentForUpdate- Parameters:
address
- addressaccountCommonService
- accountCommonService- Returns:
- AddressesEntity
-
validateIfAlreadyDefaultAddressIsPresentForUpdateFalse
public static AddressesEntity validateIfAlreadyDefaultAddressIsPresentForUpdateFalse(AddressesEntity address, AccountCommonServices accountCommonService) validateIfAlreadyDefaultAddressIsPresentForUpdate- Parameters:
address
- addressaccountCommonService
- accountCommonService- Returns:
- AddressesEntity
-