Class CommonUtilExtended

java.lang.Object
com.skava.subscription.model.CommonUtilExtended

public final class CommonUtilExtended extends Object
The Class CommonUtilExtended
Since:
March 2022
Version:
8.11
Author:
Infosys Equinox
  • Method Details

    • convertToLong

      public static long convertToLong(Object value)
      This method is used to convert to long value
      Parameters:
      value - value
      Returns:
      long value
    • convertToBoolean

      public static boolean convertToBoolean(Object value)
      This method is used to convert to boolean value
      Parameters:
      value - value
      Returns:
      boolean value
    • convertToInt

      public static int convertToInt(Object value)
      This method will convert the value to int
      Parameters:
      value - value
      Returns:
      integer value
    • convertToInteger

      public static Integer convertToInteger(String value)
      Parameters:
      value - value
      Returns:
      Integer value
    • convertToString

      public static String convertToString(Object value)
      This method is used to convert to string values
      Parameters:
      value - value
      Returns:
      string value
    • isValidEmail

      public static boolean isValidEmail(String emailStr)
      This method will check valid email or not
      Parameters:
      emailStr - emailStr
      Returns:
      true or false
    • isPositiveNumberValue

      public static boolean isPositiveNumberValue(Object obj)
      This method is positive number value
      Parameters:
      obj - object
      Returns:
      true or false
    • convertStringToLocalDateTime

      public static LocalDateTime convertStringToLocalDateTime(String date)
      Parameters:
      date - date
      Returns:
      LocalDateTime
    • isMigrationEnabled

      public static boolean isMigrationEnabled(org.apache.camel.Exchange exchange)
      Parameters:
      exchange - exchange
      Returns:
      true or false
    • isValidZipCode

      public static boolean isValidZipCode(Object value)
      Parameters:
      value - value
      Returns:
      isValidZipCode
    • getValidPhoneNumber

      public static String getValidPhoneNumber(String phoneNumber)
    • isValidPhoneNumber

      public static boolean isValidPhoneNumber(String phoneNumber)
    • getCountryISOCode

      public static String getCountryISOCode(@NonNull String country)
      getCountryISOCode
      Parameters:
      country - country
      Returns:
      A return countryISOCode
    • timeZoneConvertor

      public static String timeZoneConvertor(Long millis, String pattern, String timezone)
      Parameters:
      millis - describes millis details
      pattern - describes pattern details
      timezone - describes timezone details
      Returns:
      converted time