Package com.skava.subscription.model
Class CommonUtilExtended
java.lang.Object
com.skava.subscription.model.CommonUtilExtended
The Class CommonUtilExtended
- Since:
- March 2022
- Version:
- 8.11
- Author:
- Infosys Equinox
-
Method Summary
Modifier and TypeMethodDescriptionstatic LocalDateTimestatic booleanconvertToBoolean(Object value) This method is used to convert to boolean valuestatic intconvertToInt(Object value) This method will convert the value to intstatic IntegerconvertToInteger(String value) static longconvertToLong(Object value) This method is used to convert to long valuestatic StringconvertToString(Object value) This method is used to convert to string valuesstatic StringgetCountryISOCode(String country) getCountryISOCodestatic StringgetValidPhoneNumber(String phoneNumber) static booleanisMigrationEnabled(org.apache.camel.Exchange exchange) static booleanThis method is positive number valuestatic booleanisValidEmail(String emailStr) This method will check valid email or notstatic booleanisValidPhoneNumber(String phoneNumber) static booleanisValidZipCode(Object value) static StringtimeZoneConvertor(Long millis, String pattern, String timezone)
-
Method Details
-
convertToLong
This method is used to convert to long value- Parameters:
value- value- Returns:
- long value
-
convertToBoolean
This method is used to convert to boolean value- Parameters:
value- value- Returns:
- boolean value
-
convertToInt
This method will convert the value to int- Parameters:
value- value- Returns:
- integer value
-
convertToInteger
- Parameters:
value- value- Returns:
- Integer value
-
convertToString
This method is used to convert to string values- Parameters:
value- value- Returns:
- string value
-
isValidEmail
This method will check valid email or not- Parameters:
emailStr- emailStr- Returns:
- true or false
-
isPositiveNumberValue
This method is positive number value- Parameters:
obj- object- Returns:
- true or false
-
convertStringToLocalDateTime
- Parameters:
date- date- Returns:
- LocalDateTime
-
isMigrationEnabled
public static boolean isMigrationEnabled(org.apache.camel.Exchange exchange) - Parameters:
exchange- exchange- Returns:
- true or false
-
isValidZipCode
- Parameters:
value- value- Returns:
- isValidZipCode
-
getValidPhoneNumber
-
isValidPhoneNumber
-
getCountryISOCode
getCountryISOCode- Parameters:
country- country- Returns:
- A return countryISOCode
-
timeZoneConvertor
- Parameters:
millis- describes millis detailspattern- describes pattern detailstimezone- describes timezone details- Returns:
- converted time
-