Class ConfigHelper


  • public class ConfigHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean getSystemPropertyAsBoolean​(java.lang.String name, boolean defaultValue)  
      static int getSystemPropertyAsInt​(java.lang.String name, int defaultValue)  
      static long getSystemPropertyAsLong​(java.lang.String name, long defaultValue)  
      static java.lang.String getSystemPropertyAsString​(java.lang.String name, java.lang.String defaultValue)  
      static java.util.List<java.lang.String> getSystemPropertyAsStringList​(java.lang.String name, java.lang.String defaultValue, char separator)
      white space at the start/end of the string or at the start/end of the parts delimited by separator are trimmed
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigHelper

        public ConfigHelper()
    • Method Detail

      • getSystemPropertyAsInt

        public static int getSystemPropertyAsInt​(java.lang.String name,
                                                 int defaultValue)
      • getSystemPropertyAsLong

        public static long getSystemPropertyAsLong​(java.lang.String name,
                                                   long defaultValue)
      • getSystemPropertyAsString

        public static java.lang.String getSystemPropertyAsString​(java.lang.String name,
                                                                 java.lang.String defaultValue)
      • getSystemPropertyAsBoolean

        public static boolean getSystemPropertyAsBoolean​(java.lang.String name,
                                                         boolean defaultValue)
      • getSystemPropertyAsStringList

        public static java.util.List<java.lang.String> getSystemPropertyAsStringList​(java.lang.String name,
                                                                                     java.lang.String defaultValue,
                                                                                     char separator)
        white space at the start/end of the string or at the start/end of the parts delimited by separator are trimmed