Interface PropertyKey

    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static void checkIfValid​(String id)
      Checks if id passed as argument is not null and its value is not null as well and could be a valid property key.
      If not, throw a IllegalArgumentException.
      static void checkIfValid​(PropertyKey id)
      Checks if id passed as argument is not null and its value is not null as well and could be a valid property key.
      If not, throw a IllegalArgumentException.
      static boolean isValid​(String id)
      Returns true if id passed as argument is not null and its value could be a valid property key.
      static boolean isValid​(PropertyKey id)
      Returns true if id passed as argument is not null and its value is not null as well and could be a valid property key.
      • Methods inherited from interface org.pepstock.charba.client.commons.Key

        value
    • Method Detail

      • isValid

        static boolean isValid​(String id)
        Returns true if id passed as argument is not null and its value could be a valid property key.
        Parameters:
        id - id to be checked
        Returns:
        true if id passed as argument is not null and its value could be a valid property key.
      • isValid

        static boolean isValid​(PropertyKey id)
        Returns true if id passed as argument is not null and its value is not null as well and could be a valid property key.
        Parameters:
        id - id to be checked
        Returns:
        true if id passed as argument is not null and its value is not null as well and could be a valid property key.
      • checkIfValid

        static void checkIfValid​(PropertyKey id)
        Checks if id passed as argument is not null and its value is not null as well and could be a valid property key.
        If not, throw a IllegalArgumentException.
        Parameters:
        id - id to be checked
      • checkIfValid

        static void checkIfValid​(String id)
        Checks if id passed as argument is not null and its value is not null as well and could be a valid property key.
        If not, throw a IllegalArgumentException.
        Parameters:
        id - id as string to be checked