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 LocalDateTime
static boolean
convertToBoolean
(Object value) This method is used to convert to boolean valuestatic int
convertToInt
(Object value) This method will convert the value to intstatic Integer
convertToInteger
(String value) static long
convertToLong
(Object value) This method is used to convert to long valuestatic String
convertToString
(Object value) This method is used to convert to string valuesstatic String
getCountryISOCode
(String country) getCountryISOCodestatic String
getValidPhoneNumber
(String phoneNumber) static boolean
isMigrationEnabled
(org.apache.camel.Exchange exchange) static boolean
This method is positive number valuestatic boolean
isValidEmail
(String emailStr) This method will check valid email or notstatic boolean
isValidPhoneNumber
(String phoneNumber) static boolean
isValidZipCode
(Object value) static String
timeZoneConvertor
(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
-