Class ThreadProperty


  • public final class ThreadProperty
    extends Object
    • Method Detail

      • set

        public static void set​(String key,
                               String value)
        Set a string to share in other class.
        Parameters:
        key - the key
        value - the value
      • get

        public static String get​(String key)
        Get a property shared.
        Parameters:
        key - the key
        Returns:
        String string
      • get

        public static String get​(String key,
                                 String defaultValue)
        Get a property shared. If not found it returns the default value.
        Parameters:
        key - the key
        defaultValue - The default value
        Returns:
        String string