Class IsValidUtils

java.lang.Object
software.bluelib.utils.IsValidUtils

public class IsValidUtils extends Object
A class providing utility methods for various common operations.

Key Methods:

Since:
1.0.0
  • Method Details

    • isValidURL

      public static boolean isValidURL(String pUrl)
      A public static Boolean to check if a string is a valid URL.

      This method checks if a string is a well-formed URL. It supports both `http` and `https` schemes and automatically adds `https://` if the URL starts with "www.".

      Example Input:

      Parameters:
      pUrl - String - The URL string to validate.
      Returns:
      true if the string is a valid URL, false otherwise.
      Since:
      1.4.0
    • isValidEmail

      public static boolean isValidEmail(String pEmail)
      A Boolean that checks if a string is a valid email address.
      Parameters:
      pEmail - String - The string to be checked.
      Returns:
      true if the string is a valid email address, false otherwise.
      Since:
      1.0.0
    • isValidColor

      public static boolean isValidColor(String pInput)
      Validates if a color string is in a recognized format.

      Purpose: This method checks if a color string matches any of the supported formats.
      When: Called to validate color strings.
      Where: Used in contexts where color validation is required.
      Additional Info: Supports RGB, ARGB, and hexadecimal formats.

      Parameters:
      pInput - the color string to validate
      Returns:
      true if valid, false otherwise
      Since:
      1.6.0